Make WordPress Core

Changeset 5052


Ignore:
Timestamp:
03/16/2007 10:01:26 PM (19 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/wp-includes/classes.php

    r4991 r5052  
    150150                $this->query_vars[$wpvar] = $perma_query_vars[$wpvar];
    151151
    152             $this->query_vars[$wpvar] = (string) $this->query_vars[$wpvar];
     152            if ( !empty( $this->query_vars[$wpvar] ) )
     153                $this->query_vars[$wpvar] = (string) $this->query_vars[$wpvar];
    153154        }
    154155
Note: See TracChangeset for help on using the changeset viewer.