From: hickert Date: Mon, 3 Nov 2008 14:49:20 +0000 (+0000) Subject: Fixes Warnings, please review: X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a67ae6c5f72acd5e081ada9a910b2364f613a0ea;p=gosa.git 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 --- 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; }