From: Tim Starling Date: Fri, 18 Jun 2004 14:02:43 +0000 (+0000) Subject: fixed error handling (at least partially) X-Git-Tag: 1.5.0alpha1~2823 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=541231692520a0f1bf7171fa0d2949bd15bdfd13;p=lhc%2Fweb%2Fwiklou.git fixed error handling (at least partially) --- diff --git a/includes/LoadBalancer.php b/includes/LoadBalancer.php index baea60ac32..a17e08d7c0 100644 --- a/includes/LoadBalancer.php +++ b/includes/LoadBalancer.php @@ -176,7 +176,7 @@ class LoadBalancer { function &getWriter() { $c =& $this->getConnection( 0 ); - if ( !$c->isOpen() ) { + if ( $c === false || !$c->isOpen() ) { reportConnectionError( $conn ); $c = false; }