WordPress.org

Make WordPress Core

Ticket #23085: 23085.1.diff

File 23085.1.diff, 521 bytes (added by mbijon, 16 months ago)
  • wp-includes/wp-db.php

     
    11991199                        $this->queries[] = array( $query, $this->timer_stop(), $this->get_caller() ); 
    12001200 
    12011201                // If there is an error then take note of it.. 
    1202                 if ( $this->last_error = mysql_error( $this->dbh ) ) { 
     1202                if ( $this->dbh && $this->last_error = mysql_error( $this->dbh ) ) { 
    12031203                        $this->print_error(); 
    12041204                        return false; 
    12051205                }