Make WordPress Core


Ignore:
Timestamp:
08/10/2007 01:33:56 AM (17 years ago)
Author:
matt
Message:

If you don't have anything nice to say, don't say anything at all. (And certainly don't return the results of a previous query to an empty query.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/wp-db.php

    r5791 r5858  
    261261        if ( $query )
    262262            $this->query($query);
     263        else
     264            return null;
    263265
    264266        // Extract var out of cached results based x,y vals
     
    282284        if ( $query )
    283285            $this->query($query);
     286        else
     287            return null;
    284288
    285289        if ( !isset($this->last_result[$y]) )
     
    306310        if ( $query )
    307311            $this->query($query);
     312        else
     313            return null;
    308314
    309315        // Extract the column values
     
    325331        if ( $query )
    326332            $this->query($query);
     333        else
     334            return null;
    327335
    328336        // Send back array of objects. Each row is an object
Note: See TracChangeset for help on using the changeset viewer.