From a78b9be2062a7405757f3de2b94ec2a70d6e6b03 Mon Sep 17 00:00:00 2001 From: Champ Camba Date: Sat, 28 Jan 2017 12:15:52 +0800 Subject: [PATCH] Remove notice --- core/um-query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/um-query.php b/core/um-query.php index b9077ed8..bbd646ef 100644 --- a/core/um-query.php +++ b/core/um-query.php @@ -30,7 +30,7 @@ class UM_Query { $pages = $wpdb->get_results('SELECT * FROM '.$wpdb->posts.' WHERE post_type = "page" AND post_status = "publish" ', OBJECT); - $array = ''; + $array = array(); if( $wpdb->num_rows > 0 ){ foreach ($pages as $page_data) { $array[ $page_data->ID ] = $page_data->post_title;