Return empty array instead of false from get_editable_user_ids. Props Denis-de-Bernardy, pairg. fixes #10119 for trunk

git-svn-id: https://develop.svn.wordpress.org/trunk@11571 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2009-06-15 17:48:42 +00:00
parent cdd72d2b01
commit bffd0d6549
+1 -1
View File
@@ -253,7 +253,7 @@ function get_editable_user_ids( $user_id, $exclude_zeros = true, $post_type = 'p
if ( $user->has_cap("edit_{$post_type}s") || $exclude_zeros == false )
return array($user->id);
else
return false;
return array();
}
$level_key = $wpdb->prefix . 'user_level';