summaryrefslogtreecommitdiff
path: root/Pigeonholes.php
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2006-02-08 23:24:28 +0000
committerChristian Fowler <spider@viovio.com>2006-02-08 23:24:28 +0000
commit826274202b1944b2642fc879e601248728e783a3 (patch)
treeaea2d05a3159a77b5355ddf13b9466a5efe66d66 /Pigeonholes.php
parentbd3da2b27d914f8e8bdf3b58b662dee3b62217c8 (diff)
downloadpigeonholes-826274202b1944b2642fc879e601248728e783a3.tar.gz
pigeonholes-826274202b1944b2642fc879e601248728e783a3.tar.bz2
pigeonholes-826274202b1944b2642fc879e601248728e783a3.zip
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
Diffstat (limited to 'Pigeonholes.php')
-rw-r--r--Pigeonholes.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/Pigeonholes.php b/Pigeonholes.php
index 5a2abf9..38260b9 100644
--- a/Pigeonholes.php
+++ b/Pigeonholes.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_pigeonholes/Pigeonholes.php,v 1.41 2006/02/08 21:51:14 squareing Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_pigeonholes/Pigeonholes.php,v 1.42 2006/02/08 23:24:28 spiderr Exp $
*
* +----------------------------------------------------------------------+
* | Copyright ( c ) 2004, bitweaver.org
@@ -17,7 +17,7 @@
* Pigeonholes class
*
* @author xing <xing@synapse.plus.com>
- * @version $Revision: 1.41 $
+ * @version $Revision: 1.42 $
* @package pigeonholes
*/
@@ -466,8 +466,7 @@ class Pigeonholes extends LibertyAttachable {
// probably has to do with not null default nextval('public.liberty_structures_id_seq'::text)
if( !empty( $pParamHash['update'] ) ) {
if( !empty( $pParamHash['pigeonhole_store'] ) ) {
- $locId = array ( "name" => "content_id", "value" => $this->mContentId );
- $result = $this->mDb->associateUpdate( $table, $pParamHash['pigeonhole_store'], $locId );
+ $result = $this->mDb->associateUpdate( $table, $pParamHash['pigeonhole_store'], array("content_id" => $this->mContentId ) );
}
$pParamHash['structure_location_id'] = $this->mStructureId;
} else {