summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2002-12-27 04:47:45 +0000
committerIlia Alshanetsky <iliaa@php.net>2002-12-27 04:47:45 +0000
commit8ef253d9dc39df8aa4feaeae6055ec8b1c544b9e (patch)
tree454737ee721fd6631f8116cf796304c1d92ee27f
parentd91ac3b7b88eb97e29bda2e7184932aab74823ee (diff)
downloadphp-git-8ef253d9dc39df8aa4feaeae6055ec8b1c544b9e.tar.gz
MFH
-rw-r--r--ext/dba/tests/dba_handler.inc2
1 files changed, 1 insertions, 1 deletions
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) {