From 877fe629b346a6cda679fc49608ebdb2f7e05cb3 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Wed, 14 Mar 2007 07:40:56 +0000 Subject: [PATCH] More int casting, just to be safe. git-svn-id: http://svn.automattic.com/wordpress/trunk@5037 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/user.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/user.php b/wp-includes/user.php index bada06afdd..4618d523c8 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'"); }