From 7f9e4de95bf329a9ba460c671bd582bfdada4cbc Mon Sep 17 00:00:00 2001 From: cajus Date: Thu, 3 May 2007 12:12:00 +0000 Subject: [PATCH] Workaround for undefined index git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6248 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/sieve/class_sieveElement_Vacation.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]; -- 2.30.2