summaryrefslogtreecommitdiffstats
path: root/lib/class/dba.class.php
diff options
context:
space:
mode:
authorPaul Arthur <paul.arthur@flowerysong.com>2012-03-06 12:18:57 -0500
committerPaul Arthur <paul.arthur@flowerysong.com>2012-03-06 12:18:57 -0500
commit34b0eaf23341c00dae5a809249445549f5abbc53 (patch)
tree781bf6742b1d07eb9f5615c47919bf3b251f1e6d /lib/class/dba.class.php
parent08a4f848be123b9ac3a1b59e0ce0821e6df9fe26 (diff)
downloadampache-34b0eaf23341c00dae5a809249445549f5abbc53.tar.gz
ampache-34b0eaf23341c00dae5a809249445549f5abbc53.tar.bz2
ampache-34b0eaf23341c00dae5a809249445549f5abbc53.zip
Clean up uses of Config::set and Config::set_by_array
Consistently pass in a boolean instead of a string or an int for the clobber flag.
Diffstat (limited to 'lib/class/dba.class.php')
-rw-r--r--lib/class/dba.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/class/dba.class.php b/lib/class/dba.class.php
index e63c14af..3910fe50 100644
--- a/lib/class/dba.class.php
+++ b/lib/class/dba.class.php
@@ -307,7 +307,7 @@ class Dba {
if (!is_resource(Config::get($handle))) {
$dbh = self::_connect($database);
- Config::set($handle,$dbh,1);
+ Config::set($handle, $dbh, true);
return $dbh;
}
else {
@@ -331,7 +331,7 @@ class Dba {
mysql_close(Config::get($handle));
// Nuke it
- Config::set($handle,false,1);
+ Config::set($handle, false, true);
return true;