fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [13570] more on socommon


From: Sigurd Nes
Subject: [Fmsystem-commits] [13570] more on socommon
Date: Tue, 07 Jul 2015 13:33:34 +0000

Revision: 13570
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13570
Author:   sigurdne
Date:     2015-07-07 13:33:33 +0000 (Tue, 07 Jul 2015)
Log Message:
-----------
more on socommon

Modified Paths:
--------------
    trunk/rental/inc/class.socommon.inc.php

Modified: trunk/rental/inc/class.socommon.inc.php
===================================================================
--- trunk/rental/inc/class.socommon.inc.php     2015-07-07 13:13:44 UTC (rev 
13569)
+++ trunk/rental/inc/class.socommon.inc.php     2015-07-07 13:33:33 UTC (rev 
13570)
@@ -237,9 +237,12 @@
                        {
                                $ids[] = 
$this->db->f($id_field_name_info['translated']);
                        }
-                       $id_filter = 
"{$id_field_name_info['table']}.{$id_field_name_info['field']} IN(" . 
implode(',', $ids) . ') ';
 
-                       $sql = str_replace('1=1', $id_filter, $sql);
+                       if($ids)
+                       {
+                               $id_filter = 
"{$id_field_name_info['table']}.{$id_field_name_info['field']} IN(" . 
implode(',', $ids) . ') ';
+                               $sql = str_replace('1=1', $id_filter, $sql);
+                       }
                }
 
                $this->db->query($sql,__LINE__, __FILE__, false, true);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]