From 6765435eaf82ab6d6d22d8e0d7a50e0f690a449e Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 9 Aug 2006 06:19:31 +0000 Subject: [PATCH] Fixed undefined index git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4433 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_opengw.inc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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); -- 2.30.2