From: <on...@us...> - 2002-09-18 16:27:56
|
Update of /cvsroot/xoops/xoops-current/html/class In directory usw-pr-cvs1:/tmp/cvs-serv26078 Modified Files: mysql.php Log Message: no message Index: mysql.php =================================================================== RCS file: /cvsroot/xoops/xoops-current/html/class/mysql.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** mysql.php 18 Sep 2002 11:00:23 -0000 1.3 --- mysql.php 18 Sep 2002 16:27:47 -0000 1.4 *************** *** 35,39 **** $instance = new Database(); $instance->setLogger(XoopsLogger::getInstance()); ! $instance->connect(); } return $instance; --- 35,41 ---- $instance = new Database(); $instance->setLogger(XoopsLogger::getInstance()); ! if (!$instance->connect()) { ! return false; ! } } return $instance; *************** *** 48,51 **** --- 50,54 ---- if (!$this->conn) { $this->logger->addQuery($sql, $this->error(), $this->errno()); + return false; } *************** *** 53,56 **** --- 56,60 ---- if (!$selDB) { $this->logger->addQuery($sql, $this->error(), $this->errno()); + return false; } } |