From: Ilia Alshanetsky Date: Fri, 27 Dec 2002 04:47:45 +0000 (+0000) Subject: MFH X-Git-Tag: php-4.3.0~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8ef253d9dc39df8aa4feaeae6055ec8b1c544b9e;p=php MFH --- diff --git a/ext/dba/tests/dba_handler.inc b/ext/dba/tests/dba_handler.inc index 66a356bb18..b2e73d6237 100644 --- a/ext/dba/tests/dba_handler.inc +++ b/ext/dba/tests/dba_handler.inc @@ -67,7 +67,7 @@ } else { echo "Error reading database\n"; } - if ($dba_reader) { + if (!empty($dba_reader)) { dba_close($dba_reader); } if (($db_file = dba_popen($db_filename, 'r'.($handler!='gdbm'?'-':''), $handler))!==FALSE) {