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'



_______________________________________________
phpGroupWare-cvs mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/phpgroupware-cvs

Reply via email to