fixed typo causing preferences not to be deleted, when users or groups get deleted

This commit is contained in:
Ralf Becker 2014-01-14 11:54:24 +00:00
parent b7d0515cc2
commit 18c702dc5a

View File

@ -637,7 +637,7 @@ class preferences
*/
function delete_user($accountid)
{
if ($account_id > 0)
if ($accountid > 0)
{
$this->delete($this->table,array('preference_owner' => $accountid),__LINE__,__FILE__);
}
@ -650,7 +650,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__);
}