From 541231692520a0f1bf7171fa0d2949bd15bdfd13 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Fri, 18 Jun 2004 14:02:43 +0000 Subject: [PATCH] fixed error handling (at least partially) --- includes/LoadBalancer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.20.1