From: Marcus Boerger Date: Tue, 6 May 2003 09:34:20 +0000 (+0000) Subject: MFH X-Git-Tag: php-4.3.2RC3~80 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ea7f0f7314d700c33486935e050d98bfa0663f09;p=php MFH --- diff --git a/ext/dba/tests/skipif.inc b/ext/dba/tests/skipif.inc index 5612e682a3..1aa9b6a179 100644 --- a/ext/dba/tests/skipif.inc +++ b/ext/dba/tests/skipif.inc @@ -7,11 +7,11 @@ if (in_array('flatfile', $handlers)) { $handler = 'flatfile'; } else { - $handler = array_diff($handler, array('cdb', 'cdb_make')); /* these can only read OR write */ + $handler = array_diff($handlers, array('cdb', 'cdb_make')); /* these can only read OR write */ if (count($handler)==0) { die('skip no handler available that can be used for the test'); } - $handler = array_shift($handler); + $handler = array_shift($handlers); } } else { if (!in_array($handler, dba_handlers())) {