phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] api/class.acl_mgr.php, 1.1.2.11


From: nomail
Subject: [Phpgroupware-cvs] api/class.acl_mgr.php, 1.1.2.11
Date: Sun, 11 Jul 2004 00:53:55 +0200

Update of /api
Modified Files:
        Branch: proposal-branch
          class.acl_mgr.php

date: 2004/07/10 22:53:55;  author: jengo;  state: Exp;  lines: +7 -1

Log Message:
Fixed error when creating an entry with no ACL records
=====================================================================
Index: api/class.acl_mgr.php
diff -u api/class.acl_mgr.php:1.1.2.10 api/class.acl_mgr.php:1.1.2.11
--- api/class.acl_mgr.php:1.1.2.10      Fri Jul  9 06:44:56 2004
+++ api/class.acl_mgr.php       Sat Jul 10 22:53:55 2004
@@ -256,6 +256,12 @@
                function _add_history($location,$history_data)
                {
                        $i = 0;
+
+                       if (! 
is_array($_SESSION['phpgw_session']['phpgw_data']['statecache'][$location . 
':acl']))
+                       {
+                               return $history_data;
+                       }
+
                        foreach 
($_SESSION['phpgw_session']['phpgw_data']['statecache'][$location . ':acl'] as 
$acl)
                        {
                                $a = array




reply via email to

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