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;