]> granicus.if.org Git - php/commitdiff
MFH: Fix test (ssen by Dan Torop)
authorMarcus Boerger <helly@php.net>
Tue, 20 May 2003 22:28:29 +0000 (22:28 +0000)
committerMarcus Boerger <helly@php.net>
Tue, 20 May 2003 22:28:29 +0000 (22:28 +0000)
ext/dba/tests/skipif.inc

index 1aa9b6a179e845b8ecb2b322fb83daa260cc1051..e75000fafdeda597ee030495370cd691d6edacbd 100644 (file)
@@ -7,8 +7,8 @@
                if (in_array('flatfile', $handlers)) {
                        $handler = 'flatfile';
                } else {
-                       $handler = array_diff($handlers, array('cdb', 'cdb_make')); /* these can only read OR write */
-                       if (count($handler)==0) {
+                       $handlers = array_diff($handlers, array('cdb', 'cdb_make')); /* these can only read OR write */
+                       if (count($handlers)==0) {
                                die('skip no handler available that can be used for the test');
                        }
                        $handler = array_shift($handlers);