fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [12563] class.socustom.inc


From: Saul
Subject: [Fmsystem-commits] [12563] class.socustom.inc
Date: Wed, 07 Jan 2015 23:31:45 +0000

Revision: 12563
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12563
Author:   psaul
Date:     2015-01-07 23:31:45 +0000 (Wed, 07 Jan 2015)
Log Message:
-----------
class.socustom.inc

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-01-07 
23:31:28 UTC (rev 12562)
+++ branches/dev-syncromind/property/inc/class.socustom.inc.php 2015-01-07 
23:31:45 UTC (rev 12563)
@@ -44,6 +44,7 @@
 
                function read($data)
                {
+
                        if(is_array($data))
                        {
                                $start  = 
(isset($data['start'])?$data['start']:0);
@@ -52,9 +53,12 @@
                                $sort = 
(isset($data['sort'])?$data['sort']:'DESC');
                                $order = 
(isset($data['order'])?$data['order']:'');
                                $cat_id = 
(isset($data['cat_id'])?$data['cat_id']:0);
-                               $allrows                = 
(isset($data['allrows'])?$data['allrows']:'');
+                               $allrows = 
(isset($data['allrows'])?$data['allrows']:'');
+                $results = (isset($data['results'])?$data['results'] : 0);
                        }
-
+            
+            $order = ($order == 'custom_id')?'id':$order;
+            
                        if ($order)
                        {
                                $ordermethod = " order by $order $sort";
@@ -84,7 +88,7 @@
 
                        if(!$allrows)
                        {
-                               $this->db->limit_query($sql . 
$ordermethod,$start,__LINE__,__FILE__);
+                               $this->db->limit_query($sql . 
$ordermethod,$start,__LINE__,__FILE__,$results);
                        }
                        else
                        {




reply via email to

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