From a67ae6c5f72acd5e081ada9a910b2364f613a0ea Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 3 Nov 2008 14:49:20 +0000 Subject: [PATCH] Fixes Warnings, please review: PHP Fehler "Undefined index: " Ablaufverfolgung[0]: Funktion gosaRaiseError Datei: /storage/hickert/gosa/gosa-all/gosa/include/class_userinfo.inc (Zeile 553) Typ: - Argumente: "8", "Undefined index: ", "/storage/hickert/gosa/gosa-all/gosa/include/class_userinfo.inc", "553", "Array" Ablaufverfolgung[1]: Klasse userinfo / Funktion mergeACL Datei: /storage/hickert/gosa/gosa-all/gosa/include/class_userinfo.inc (Zeile 401) Typ: Methode git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12875 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_userinfo.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gosa-core/include/class_userinfo.inc b/gosa-core/include/class_userinfo.inc index 65538578d..c10c6c35f 100644 --- a/gosa-core/include/class_userinfo.inc +++ b/gosa-core/include/class_userinfo.inc @@ -550,7 +550,7 @@ class userinfo foreach(str_split($newACL) as $char){ /* Skip permanent and subtree entries */ - if (preg_match('/[sp]/', $acl[$char])){ + if (!isset($acl[$char]) || preg_match('/[sp]/', $acl[$char])){ continue; } -- 2.30.2