fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [12746] class.socustom


From: Saul
Subject: [Fmsystem-commits] [12746] class.socustom
Date: Thu, 12 Feb 2015 23:13:32 +0000

Revision: 12746
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12746
Author:   psaul
Date:     2015-02-12 23:13:32 +0000 (Thu, 12 Feb 2015)
Log Message:
-----------
class.socustom

Modified Paths:
--------------
    branches/dev-syncromind/property/inc/class.socustom.inc.php

Modified: branches/dev-syncromind/property/inc/class.socustom.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.socustom.inc.php 2015-02-12 
23:12:52 UTC (rev 12745)
+++ branches/dev-syncromind/property/inc/class.socustom.inc.php 2015-02-12 
23:13:32 UTC (rev 12746)
@@ -125,7 +125,7 @@
                                                'cols'                  => 
$this->read_cols($custom_id)
                                        );
                        }
-
+                
                        return $custom;
                }
 
@@ -210,12 +210,12 @@
                        }
 
 
-                       if($custom['delete_cols'])
+                       if($custom['delete'])
                        {
-                               for ($i=0;$i<count($custom['delete_cols']);$i++)
+                               for ($i=0;$i<count($custom['delete']);$i++)
                                {
 
-                                       $sql = "SELECT sorting FROM 
fm_custom_cols where custom_id=" . $custom['custom_id'] . " AND id=" . 
$custom['delete_cols'][$i];
+                                       $sql = "SELECT sorting FROM 
fm_custom_cols where custom_id=" . $custom['custom_id'] . " AND id=" . 
$custom['delete'][$i];
                                        $this->db->query($sql);
                                        $this->db->next_record();
                                        $sorting        = 
$this->db->f('sorting');
@@ -231,7 +231,7 @@
                                        }
 
 
-                                       $this->db->query("DELETE FROM 
fm_custom_cols WHERE  custom_id=" . $custom['custom_id']  ." AND id=" . 
$custom['delete_cols'][$i]);
+                                       $this->db->query("DELETE FROM 
fm_custom_cols WHERE  custom_id=" . $custom['custom_id']  ." AND id=" . 
$custom['delete'][$i]);
                                }
                        }
 




reply via email to

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