Changeset 1060 for trunk/common


Ignore:
Timestamp:
11/04/09 13:25:54 (3 years ago)
Author:
bogdan2412
Message:

Really fix database connection keep alive. :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/common/db/db_mysql.php

    r1059 r1060  
    66    global $dbLink; 
    77    // Repetitive include guard. Is this really needed? 
    8     log_assert(!isset($dbLink), "Already connected to the database."); 
     8    if (db_isalive()) { 
     9        log_warn("Already connected to the database."); 
     10        return true; 
     11    } 
    912 
    1013    // log_print("Connecting to database..."); 
Note: See TracChangeset for help on using the changeset viewer.