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

git-svn-id: https://develop.svn.wordpress.org/trunk@5051 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-03-16 22:00:43 +00:00
parent cb973fe273
commit d4007dfa64
1 changed files with 2 additions and 1 deletions

View File

@ -149,7 +149,8 @@ class WP {
elseif (!empty($perma_query_vars[$wpvar]))
$this->query_vars[$wpvar] = $perma_query_vars[$wpvar];
$this->query_vars[$wpvar] = (string) $this->query_vars[$wpvar];
if ( !empty( $this->query_vars[$wpvar] ) )
$this->query_vars[$wpvar] = (string) $this->query_vars[$wpvar];
}
foreach ($this->private_query_vars as $var) {