cvs: pear /LiveUser_Admin/Storage MDB.php
| From: | Helgi �ormar �orbj�rnsson | Date: | Fri, 21 Jan 2005 19:34:48 +0000 |
| Subject: | cvs: pear /LiveUser_Admin/Storage MDB.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-28729@lists.php.net to get a copy of this message | ||
dufuz Fri Jan 21 14:34:48 2005 EDT
Modified files:
/pear/LiveUser_Admin/Storage MDB.php
Log:
Fix some illeagal offset problems with MDB container
http://cvs.php.net/diff.php/pear/LiveUser_Admin/Storage/MDB.php?r1=1.3&r2=1.4&ty=u
Index: pear/LiveUser_Admin/Storage/MDB.php
diff -u pear/LiveUser_Admin/Storage/MDB.php:1.3 pear/LiveUser_Admin/Storage/MDB.php:1.4
--- pear/LiveUser_Admin/Storage/MDB.php:1.3 Thu Jan 20 17:26:22 2005
+++ pear/LiveUser_Admin/Storage/MDB.php Fri Jan 21 14:34:47 2005
@@ -44,7 +44,7 @@
*
* @author Lukas Smith <smith@backendmedia.com>
* @author Bjoern Kraus <krausbn@php.net>
- * @version $Id: MDB.php,v 1.3 2005/01/20 22:26:22 lsmith Exp $
+ * @version $Id: MDB.php,v 1.4 2005/01/21 19:34:47 dufuz Exp $
* @package LiveUser
* @category authentication
*/
@@ -133,6 +133,9 @@
function queryOne($query, $type)
{
+ if (is_array($type)) {
+ $type = reset($type);
+ }
$result = $this->dbc->queryOne($query, $type);
if (PEAR::isError($result)) {
$this->_stack->push(
@@ -159,6 +162,9 @@
function queryCol($query, $type)
{
+ if (is_array($type)) {
+ $type = reset($type);
+ }
$result = $this->dbc->queryCol($query, $type);
if (PEAR::isError($result)) {
$this->_stack->push(