From e08e3e006e1482c91ed76b24291f47f872f913ff Mon Sep 17 00:00:00 2001 From: donncha Date: Mon, 19 Mar 2007 13:04:29 +0000 Subject: WP Merge to rev 5061 git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@920 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-includes/user.php | 1 + 1 file changed, 1 insertion(+) (limited to 'wp-includes/user.php') diff --git a/wp-includes/user.php b/wp-includes/user.php index 00b58d2..281483f 100644 --- a/wp-includes/user.php +++ b/wp-includes/user.php @@ -9,6 +9,7 @@ function get_profile($field, $user = false) { function get_usernumposts($userid) { global $wpdb; + $userid = (int) $userid; return $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_author = '$userid' AND post_type = 'post' AND post_status = 'publish'"); } -- cgit