diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-05-12 12:19:32 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-05-12 12:19:32 +0000 |
| commit | 84b533cc6e53e842df3fe1ffec89ed45dc0685fa (patch) | |
| tree | 3913d9e0d35d12f865310a9f6d310539b2354f79 /roundcubemail/program/lib/DB/storage.php | |
| parent | 5d08ba67a680e1828d07c20cfa62ec62d96deae0 (diff) | |
- Updated PEAR::DB package to version 1.7.13
git-svn-id: https://svn.roundcube.net/trunk@1377 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/lib/DB/storage.php')
| -rw-r--r-- | roundcubemail/program/lib/DB/storage.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/roundcubemail/program/lib/DB/storage.php b/roundcubemail/program/lib/DB/storage.php index 17bffd155..67318a910 100644 --- a/roundcubemail/program/lib/DB/storage.php +++ b/roundcubemail/program/lib/DB/storage.php @@ -16,7 +16,7 @@ * @category Database * @package DB * @author Stig Bakken <stig@php.net> - * @copyright 1997-2005 The PHP Group + * @copyright 1997-2007 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version CVS: $Id$ * @link http://pear.php.net/package/DB @@ -36,9 +36,9 @@ require_once 'DB.php'; * @category Database * @package DB * @author Stig Bakken <stig@php.net> - * @copyright 1997-2005 The PHP Group + * @copyright 1997-2007 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version Release: @package_version@ + * @version Release: 1.7.13 * @link http://pear.php.net/package/DB */ class DB_storage extends PEAR @@ -293,7 +293,7 @@ class DB_storage extends PEAR function &create($table, &$data) { $classname = strtolower(get_class($this)); - $obj =& new $classname($table); + $obj = new $classname($table); foreach ($data as $name => $value) { $obj->_properties[$name] = true; $obj->$name = &$value; @@ -445,6 +445,8 @@ class DB_storage extends PEAR */ function store() { + $params = array(); + $vars = array(); foreach ($this->_changes as $name => $foo) { $params[] = &$this->$name; $vars[] = $name . ' = ?'; |
