From e334678ecc201dc77e75a2c5875d6870debcad91 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 24 Aug 2015 16:23:01 +0000 Subject: [PATCH] missed to pass owner --- phpgwapi/inc/class.preferences.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.preferences.inc.php b/phpgwapi/inc/class.preferences.inc.php index 657470ee4d..6ff7879d34 100644 --- a/phpgwapi/inc/class.preferences.inc.php +++ b/phpgwapi/inc/class.preferences.inc.php @@ -731,7 +731,7 @@ class preferences * * @param string $app app-name or null for all apps * @param string $name attribute name or regular expression (enclosed in /) to match attribute-name eg. '/^favorite_/' - * @param string|callable $value new value to set, or null or '' to delete it or callable returning new value: function($attr, $old_value) + * @param string|callable $value new value to set, or null or '' to delete it or callable returning new value: function($attr, $old_value, $owner) * @param string $old_value if given, only change if that's current value * @param string $type if given limit to "user", "forced", "default", "group" */ @@ -778,7 +778,7 @@ class preferences { if (isset($old_value) && $prefs[$attr] != $old_value) continue; - $val = is_callable($value) ? call_user_func($value, $attr, $prefs[$attr]) : $value; + $val = is_callable($value) ? call_user_func($value, $attr, $prefs[$attr], $row['preference_owner']) : $value; if ($val === $prefs[$attr]) continue; $updated = true;