phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] [21016] Fix: Stop process when nothing to do 4733:473


From: Sigurd Nes
Subject: [Phpgroupware-cvs] [21016] Fix: Stop process when nothing to do 4733:4736
Date: Sun, 07 Feb 2010 10:19:01 +0000

Revision: 21016
          
http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=21016
Author:   sigurdne
Date:     2010-02-07 10:19:00 +0000 (Sun, 07 Feb 2010)
Log Message:
-----------
Fix: Stop process when nothing to do 4733:4736

Modified Paths:
--------------
    people/sigurdne/modules/phpgwapi/trunk/inc/class.acl.inc.php

Modified: people/sigurdne/modules/phpgwapi/trunk/inc/class.acl.inc.php
===================================================================
--- people/sigurdne/modules/phpgwapi/trunk/inc/class.acl.inc.php        
2010-02-07 10:16:41 UTC (rev 21015)
+++ people/sigurdne/modules/phpgwapi/trunk/inc/class.acl.inc.php        
2010-02-07 10:19:00 UTC (rev 21016)
@@ -1054,6 +1054,10 @@
                                $locations[] = $this->_db->f('location_id');
                        }
 
+                       if(!$locations)
+                       {
+                               return;
+                       }
                        $location_filter = implode(',', $locations);
 
                        $sql = 'DELETE FROM phpgw_acl'





reply via email to

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