Changeset 15 for trunk/lib/DBSessionHandler.inc.php
- Timestamp:
- Nov 13, 2005 4:51:22 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/DBSessionHandler.inc.php
r14 r15 38 38 $this->db =& $db; 39 39 40 } else if (isset($db) && is_a($db, 'DB')) { 41 // Not a DB object. 42 App::logMsg(sprintf('Provided DB object is not connected. %s', mysql_error($db->dbh)), LOG_ERR, __FILE__, __LINE__); 43 40 44 } else if (isset($db)) { 41 45 // Not a DB object. 42 App::logMsg(sprintf(' Argument one is not a valid DB object:%s', gettype($db)), LOG_ERR, __FILE__, __LINE__);46 App::logMsg(sprintf('Provided DB object is not valid. %s', gettype($db)), LOG_ERR, __FILE__, __LINE__); 43 47 44 48 } else { … … 59 63 // Connect to database. 60 64 $this->db->connect(); 61 62 65 } 63 66
Note: See TracChangeset
for help on using the changeset viewer.