From 57240d4e8ab186b1124c51d800efe3e7ef365dd5 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 14 Jan 2014 11:53:53 +0000 Subject: [PATCH] fixed typo causing preferences not to be deleted, when users or groups get deleted --- 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 04b70facc7..9e07d1b2a7 100644 --- a/phpgwapi/inc/class.preferences.inc.php +++ b/phpgwapi/inc/class.preferences.inc.php @@ -677,7 +677,7 @@ class preferences */ function delete_user($accountid) { - if ($account_id > 0) + if ($accountid > 0) { $this->delete($this->table,array('preference_owner' => $accountid),__LINE__,__FILE__); } @@ -690,7 +690,7 @@ class preferences */ function delete_group($accountid) { - if ($account_id < 0) + if ($accountid < 0) { $this->delete($this->table,array('preference_owner' => $accountid+self::DEFAULT_ID),__LINE__,__FILE__); }