From 2265b5b4c5bdf26a3c227fcd3275f93318d25a5e Mon Sep 17 00:00:00 2001 From: Colin Viebrock Date: Fri, 2 Feb 2001 17:59:30 +0000 Subject: [PATCH] I think this should've been changed as well, right? --- pear/DB.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pear/DB.php b/pear/DB.php index a714950a7b..30f9efd638 100644 --- a/pear/DB.php +++ b/pear/DB.php @@ -218,14 +218,14 @@ class DB } if (is_array($options)) { - foreach ($persistent as $option => $value) { + foreach ($options as $option => $value) { $test = $obj->setOption($option, $value); if (DB::isError($test)) { return $test; } } } else { - $obj->setOption('persistent', $persistent); + $obj->setOption('persistent', $options); } $err = $obj->connect($dsninfo, $obj->getOption('persistent')); -- 2.40.0