Skip to:
Content

bbPress.org

Changeset 957


Ignore:
Timestamp:
11/17/2007 08:21:26 PM (18 years ago)
Author:
mdawaffe
Message:

mysqli_connect() returns a mysqli object, not a mysql resource. Fixes #745 props sambauers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-includes/db-mysqli.php

    r956 r957  
    165165    }
    166166
    167     // table name or mysql resource
     167    // table name or mysqli object
    168168    function db_version( $dbh = false ) {
    169169        if ( !$dbh )
    170170            $dbh = $this->forums;
    171171
    172         if ( !is_resource( $dbh ) )
     172        if ( !is_object( $dbh ) )
    173173            $dbh = $this->db_connect( "DESCRIBE $dbh" );
    174174
Note: See TracChangeset for help on using the changeset viewer.