From 2e96b99ceb195735a641e299f3209840cc101052 Mon Sep 17 00:00:00 2001 From: donncha Date: Fri, 23 Mar 2007 17:46:02 +0000 Subject: Ryan casts an int and catches a fish, someone buy him a pint! merge to 5092 git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@933 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- app.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'app.php') diff --git a/app.php b/app.php index 08fd3d1..d64ccc2 100644 --- a/app.php +++ b/app.php @@ -417,9 +417,9 @@ EOD; if(!current_user_can($cap)) $this->auth_required('Sorry, you do not have the right to edit/publish new posts.'); - $blog_ID = $current_blog->blog_id; + $blog_ID = (int )$current_blog->blog_id; $post_status = ($publish) ? 'publish' : 'draft'; - $post_author = $user->ID; + $post_author = (int) $user->ID; $post_title = $entry->title; $post_content = $entry->content; $post_excerpt = $entry->summary; @@ -788,7 +788,7 @@ EOD; global $use_querystring; if(!isset($postID)) { global $post; - $postID = $GLOBALS['post']->ID; + $postID = (int) $GLOBALS['post']->ID; } if ($use_querystring) { @@ -810,7 +810,7 @@ EOD; global $use_querystring; if(!isset($postID)) { global $post; - $postID = $GLOBALS['post']->ID; + $postID = (int) $GLOBALS['post']->ID; } if ($use_querystring) { @@ -885,7 +885,7 @@ EOD; $wp = $GLOBALS['wp']; $wp_query = $GLOBALS['wp_query']; $wpdb = $GLOBALS['wpdb']; - $blog_id = $GLOBALS['blog_id']; + $blog_id = (int) $GLOBALS['blog_id']; $post_cache = $GLOBALS['post_cache']; -- cgit