From 17bf7a27a85235db6b4c54fa72eb7c10ef9578d6 Mon Sep 17 00:00:00 2001 From: blainett Date: Fri, 10 Jun 2005 13:43:16 +0000 Subject: [PATCH] From Roland tests: count variable don't appear in all php versions. And Undefined index: fstate git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@676 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../connectivity/class_oxchangeAccount.inc | 29 +++++++++++++------ 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/plugins/personal/connectivity/class_oxchangeAccount.inc b/plugins/personal/connectivity/class_oxchangeAccount.inc index 9b774ba3a..1fddc4935 100644 --- a/plugins/personal/connectivity/class_oxchangeAccount.inc +++ b/plugins/personal/connectivity/class_oxchangeAccount.inc @@ -1,4 +1,22 @@ assign("oxchangeState", "checked"); } else { $smarty->assign("oxchangeState", ""); - $smarty->assign("fstate", "disabled"); } - // if ($this->is_account){ $smarty->assign("timezones", $this->timezones); - // } else { - // $smarty->assign("timezones", array("GMT")); - // } if ($this->parent != NULL){ @@ -722,8 +735,8 @@ class oxchangeAccount extends plugin $needupdate=TRUE; /*First at all, we must check if this is new or is updated */ - for ($i=0;$i<$this->attrs['objectClass']['count'];$i++){ - if($this->attrs['objectClass'][$i]=="OXUserObject") $needupdate=FALSE; + foreach ($this->attrs['objectClass'] as $object){ + if($object=="OXUserObject") $needupdate=FALSE; } if($needupdate){ @@ -794,6 +807,4 @@ class oxchangeAccount extends plugin } } - -// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?> -- 2.30.2