cvs: pear /Auth_PrefManager PrefManager.php
| From: | Jon Wood | Date: | Tue, 17 Feb 2004 06:20:09 +0000 |
| Subject: | cvs: pear /Auth_PrefManager PrefManager.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-16611@lists.php.net to get a copy of this message | ||
jellybob Tue Feb 17 01:20:09 2004 EDT
Modified files:
/pear/Auth_PrefManager PrefManager.php
Log:
Bug fix
http://cvs.php.net/diff.php/pear/Auth_PrefManager/PrefManager.php?r1=1.9&r2=1.10&ty=u
Index: pear/Auth_PrefManager/PrefManager.php
diff -u pear/Auth_PrefManager/PrefManager.php:1.9 pear/Auth_PrefManager/PrefManager.php:1.10
--- pear/Auth_PrefManager/PrefManager.php:1.9 Thu Nov 20 11:55:37 2003
+++ pear/Auth_PrefManager/PrefManager.php Tue Feb 17 01:20:09 2004
@@ -140,7 +140,7 @@
if (isset($properties["valueColumn"])) { $this->_valueColumn =
$properties["valueColumn"]; }
if (isset($properties["defaultUser"])) { $this->_defaultUser =
$properties["defaultUser"]; }
if (isset($properties["cacheName"])) { $this->_cacheName =
$properties["cacheName"]; }
- if (isset($properties["useCache"])) { $this->_useCache =
$properties["useCache"]; }
+ if (isset($properties["useCache"])) { $this->_useCache =
$properties["useCache"]; }
if (isset($properties["serialize"])) { $this->_serialize =
$properties["serialize"]; }
}
@@ -205,7 +205,7 @@
} else if ($result->numRows()) {
// The query found a value, so we can cache that, and then return it.
$row = $result->fetchRow(DB_FETCHMODE_ASSOC);
- $_SESSION[$this->_cacheName][$user_id][$pref_id] = $row[$this->_valueColumn];
+ $_SESSION[$this->_cacheName][$user_id][$pref_id] =
$this->_unpack($row[$this->_valueColumn]);
return $_SESSION[$this->_cacheName][$user_id][$pref_id];
} else if ($this->_returnDefaults && $showDefaults) {
// I was doing this with a call to getPref again, but it threw things into an