From: Colin Viebrock Date: Fri, 2 Feb 2001 17:59:30 +0000 (+0000) Subject: I think this should've been changed as well, right? X-Git-Tag: php-4.0.5RC1~388 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2265b5b4c5bdf26a3c227fcd3275f93318d25a5e;p=php I think this should've been changed as well, right? --- 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'));