From 9095f3284424fdcd57416156ab8b33917e7c07da 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/branches/2.0@5037 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index e99aa27bb7..e40b65038e 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -171,6 +171,7 @@ function user_pass_ok($user_login,$user_pass) { function get_usernumposts($userid) { global $wpdb; + $userid = (int) $userid; return $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_author = '$userid' AND post_status = 'publish'"); }