summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 274f200)
raw | patch | inline | side by side (parent: 274f200)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 26 Aug 2009 12:54:04 +0000 (12:54 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 26 Aug 2009 12:54:04 +0000 (12:54 +0000) |
-We can't lock 'Arrays' directly, walk through the array and lock each entry seperately.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14141 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14141 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/functions.inc | patch | blob | history |
index b1ea54525c3dd00399f384faf1eb6a1cf9b84b38..b0d14045abc23aaeddc4012b82e3cf059a74c982 100644 (file)
if(!session::global_is_set("LOCK_CACHE")){
session::global_set("LOCK_CACHE",array(""));
}
+ if(is_array($object)){
+ foreach($object as $obj){
+ add_lock($obj,$user);
+ }
+ return;
+ }
+
$cache = &session::global_get("LOCK_CACHE");
if(isset($_POST['open_readonly'])){
$cache['READ_ONLY'][$object] = TRUE;
unset($cache['READ_ONLY'][$object]);
}
- if(is_array($object)){
- foreach($object as $obj){
- add_lock($obj,$user);
- }
- return;
- }
/* Just a sanity check... */
if ($object == "" || $user == ""){