Recently installed wordpress MU on a domain of mine. everything is fine except for 2 things one: (both happening when I created a test blog)
I have the word "array" showing up on some form input fields and second I'm getting this error when I click the "users" tab
Fatal error: Unsupported operand types in mydomain/wp-admin/users.php on line 55
Here's that block of code, don't really see anything wrong with it.
I have the word "array" showing up on some form input fields and second I'm getting this error when I click the "users" tab
Fatal error: Unsupported operand types in mydomain/wp-admin/users.php on line 55
Here's that block of code, don't really see anything wrong with it.
PHP:
function prepare_query() {
global $wpdb;
$this->first_user = ($this->page - 1) * $this->users_per_page;
$this->query_limit = 'LIMIT ' . $this->first_user . ',' . $this->users_per_page;
if ( $this->search_term ) {
$searches = array();
$search_sql = 'AND (';
foreach ( array('user_login', 'user_nicename', 'user_email', 'user_url', 'display_name') as $col )
$searches[] = $col . " LIKE '%$this->search_term%'";
$search_sql .= implode(' OR ', $searches);
$search_sql .= ')';
}
$this->query_from_where = "FROM $wpdb->users, $wpdb->usermeta WHERE $wpdb->users.ID = $wpdb->usermeta.user_id AND meta_key = '".$wpdb->prefix."capabilities' $search_sql";
}