From: cajus Date: Thu, 3 May 2007 12:12:00 +0000 (+0000) Subject: Workaround for undefined index X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7f9e4de95bf329a9ba460c671bd582bfdada4cbc;p=gosa.git Workaround for undefined index git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6248 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/sieve/class_sieveElement_Vacation.inc b/include/sieve/class_sieveElement_Vacation.inc index 91d231066..c1c28e3ce 100644 --- a/include/sieve/class_sieveElement_Vacation.inc +++ b/include/sieve/class_sieveElement_Vacation.inc @@ -30,7 +30,8 @@ class sieve_vacation if(($data == NULL) || !is_array($data)) return; /* Walk through elements */ - for($i = 0 ; $i < count($data['ELEMENTS']) ; $i ++){ + $p= count($data['ELEMENTS']); + for ($i= 0; $i < $p; $i++){ /* get current element */ $node = $data['ELEMENTS'][$i];