From: hickert Date: Wed, 9 Aug 2006 06:19:31 +0000 (+0000) Subject: Fixed undefined index X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6765435eaf82ab6d6d22d8e0d7a50e0f690a449e;p=gosa.git Fixed undefined index git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4433 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_opengw.inc b/include/class_opengw.inc index 44cc74d67..de50ef936 100755 --- a/include/class_opengw.inc +++ b/include/class_opengw.inc @@ -222,10 +222,12 @@ class ogw{ foreach($this->validTeams as $id){ $tmp[]= $id['company_id']; } - foreach($this->info['TeamIDis'] as $id){ - if(!in_array($id,$tmp)){ - $this->LastError = sprintf("Given 'Team ID':%s is invalid.",$id); - return(false); + if(is_array($this->info['TeamIDis'])){ + foreach($this->info['TeamIDis'] as $id){ + if(!in_array($id,$tmp)){ + $this->LastError = sprintf("Given 'Team ID':%s is invalid.",$id); + return(false); + } } } return(true);