From ea7f0f7314d700c33486935e050d98bfa0663f09 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Tue, 6 May 2003 09:34:20 +0000 Subject: [PATCH] MFH --- ext/dba/tests/skipif.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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())) { -- 2.50.1