[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [7516] catch: importhelper
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [7516] catch: importhelper |
Date: |
Sun, 21 Aug 2011 15:09:52 +0000 |
Revision: 7516
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7516
Author: sigurdne
Date: 2011-08-21 15:09:51 +0000 (Sun, 21 Aug 2011)
Log Message:
-----------
catch: importhelper
Modified Paths:
--------------
trunk/catch/inc/custom/default/update_location_at_record_nlsh.php
Modified: trunk/catch/inc/custom/default/update_location_at_record_nlsh.php
===================================================================
--- trunk/catch/inc/custom/default/update_location_at_record_nlsh.php
2011-08-19 12:57:35 UTC (rev 7515)
+++ trunk/catch/inc/custom/default/update_location_at_record_nlsh.php
2011-08-21 15:09:51 UTC (rev 7516)
@@ -1,9 +1,8 @@
<?php
if(!isset($this->db) || !is_object($this->db))
{
- $this->db = clone($GLOBALS['phpgw']->db);
- $this->like = & $this->db->like;
-
+ $this->db = & $GLOBALS['phpgw']->db;
+ $this->like = & $this->db->like;
}
$this->db2 = clone($this->db);
@@ -12,7 +11,7 @@
{
$target_table =
"fm_{$this->type_app[$this->type]}_{$entity_id}_{$cat_id}";
}
-
+
$ids = array();
$this->db->query("SELECT id FROM $target_table WHERE
location_code is NULL",__LINE__,__FILE__);
while ($this->db->next_record())
@@ -107,10 +106,10 @@
$value_set['location_code'] =
implode('-', $location);
}
}
-
+
if($value_set)
{
$value_set =
$this->db->validate_update($value_set);
- $this->db->query("UPDATE $target_table SET
$value_set WHERE id= {$_id}",__LINE__,__FILE__);
+ $this->db->query("UPDATE $target_table SET
$value_set WHERE id={$_id}",__LINE__,__FILE__);
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [7516] catch: importhelper,
Sigurd Nes <=