From 4cd32b9deb7fd5a8b30cd44dd666bebacbea79e4 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Wed, 22 Aug 2012 08:00:36 +0000 Subject: [PATCH] silence warnings --- phpgwapi/inc/class.preferences.inc.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/phpgwapi/inc/class.preferences.inc.php b/phpgwapi/inc/class.preferences.inc.php index 09fd7bf9fb..5cd9936981 100644 --- a/phpgwapi/inc/class.preferences.inc.php +++ b/phpgwapi/inc/class.preferences.inc.php @@ -382,9 +382,9 @@ class preferences // now use (primary) group defaults if needed (user-value unset or empty) // - foreach($this->group as $app => $values) + foreach((array)$this->group as $app => $values) { - foreach($values as $var => $value) + foreach((array)$values as $var => $value) { if (!isset($this->data[$app][$var]) || $this->data[$app][$var] === '') { @@ -394,9 +394,9 @@ class preferences } // now use defaults if needed (user-value unset or empty) // - foreach($this->default as $app => $values) + foreach((array)$this->default as $app => $values) { - foreach($values as $var => $value) + foreach((array)$values as $var => $value) { if (!isset($this->data[$app][$var]) || $this->data[$app][$var] === '') { @@ -407,9 +407,9 @@ class preferences } // now set/force forced values // - foreach($this->forced as $app => $values) + foreach((array)$this->forced as $app => $values) { - foreach($values as $var => $value) + foreach((array)$values as $var => $value) { $this->data[$app][$var] = $value; }