[Hastymail-cvs] SF.net SVN: hastymail:[928] trunk/hastymail2/lib/utility_classes.php
Brought to you by:
sailfrog,
slushpupie
From: <sai...@us...> - 2009-06-06 19:39:53
|
Revision: 928 http://hastymail.svn.sourceforge.net/hastymail/?rev=928&view=rev Author: sailfrog Date: 2009-06-06 19:39:23 +0000 (Sat, 06 Jun 2009) Log Message: ----------- better error condition handling for the db system Modified Paths: -------------- trunk/hastymail2/lib/utility_classes.php Modified: trunk/hastymail2/lib/utility_classes.php =================================================================== --- trunk/hastymail2/lib/utility_classes.php 2009-06-06 17:02:08 UTC (rev 927) +++ trunk/hastymail2/lib/utility_classes.php 2009-06-06 19:39:23 UTC (rev 928) @@ -1641,9 +1641,8 @@ /* db functions */ function get_db() { global $dbase; - if (!is_object($dbase)) { + if (!is_object($dbase) || PEAR::isError($dbase->db_read)) { $res = false; - $this->send_notice('No database connection found'); } else { $res = true; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |