From 876765ded93ae45b7f33d6ac04938140259d89be Mon Sep 17 00:00:00 2001 From: Christian Fowler Date: Wed, 8 Feb 2006 23:24:28 +0000 Subject: major change of BitDbBase::associateUpdate method - it now takes a simpler array( 'column1' => 'value1', columnN' => 'valueN' ) as the third parameter. This allows much simpler updating based on multiple columns in the WHERE clause --- LibertyQuota.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/LibertyQuota.php b/LibertyQuota.php index 51e101c..bc82b2d 100644 --- a/LibertyQuota.php +++ b/LibertyQuota.php @@ -1,6 +1,6 @@ * - * @version $Revision: 1.7 $ $Date: 2006/02/01 18:42:54 $ $Author: squareing $ + * @version $Revision: 1.8 $ $Date: 2006/02/08 23:24:28 $ $Author: spiderr $ */ class LibertyQuota extends LibertyBase { /** @@ -55,8 +55,7 @@ class LibertyQuota extends LibertyBase { $this->mDb->StartTrans(); $table = BIT_DB_PREFIX."quotas"; if( $this->mQuotaId ) { - $locId = array ( "name" => "quota_id", "value" => $pParamHash['quota_id'] ); - $result = $this->mDb->associateUpdate( $table, $pParamHash['quota_store'], $locId ); + $result = $this->mDb->associateUpdate( $table, $pParamHash['quota_store'], array( "quota_id" => $pParamHash['quota_id'] ) ); } else { $this->mQuotaId = $this->mDb->GenID( 'quota_id_seq' ); $pParamHash['quota_store']['quota_id'] = $this->mQuotaId; -- cgit v1.3