Don't cast to string if empty. Props donncha. fixes #3979 for 2.0

git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@5053 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-03-16 22:05:15 +00:00
parent b3268bdec9
commit 19d57a5326
1 changed files with 3 additions and 0 deletions

View File

@ -1617,6 +1617,9 @@ class WP {
$this->query_vars[$wpvar] = $query_vars[$wpvar];
else
$this->query_vars[$wpvar] = '';
if ( !empty( $this->query_vars[$wpvar] ) )
$this->query_vars[$wpvar] = (string) $this->query_vars[$wpvar];
}
if ( isset($error) )