mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 18:03:39 +01:00
fixed typo causing preferences not to be deleted, when users or groups get deleted
This commit is contained in:
parent
c82ffac545
commit
57240d4e8a
@ -677,7 +677,7 @@ class preferences
|
|||||||
*/
|
*/
|
||||||
function delete_user($accountid)
|
function delete_user($accountid)
|
||||||
{
|
{
|
||||||
if ($account_id > 0)
|
if ($accountid > 0)
|
||||||
{
|
{
|
||||||
$this->delete($this->table,array('preference_owner' => $accountid),__LINE__,__FILE__);
|
$this->delete($this->table,array('preference_owner' => $accountid),__LINE__,__FILE__);
|
||||||
}
|
}
|
||||||
@ -690,7 +690,7 @@ class preferences
|
|||||||
*/
|
*/
|
||||||
function delete_group($accountid)
|
function delete_group($accountid)
|
||||||
{
|
{
|
||||||
if ($account_id < 0)
|
if ($accountid < 0)
|
||||||
{
|
{
|
||||||
$this->delete($this->table,array('preference_owner' => $accountid+self::DEFAULT_ID),__LINE__,__FILE__);
|
$this->delete($this->table,array('preference_owner' => $accountid+self::DEFAULT_ID),__LINE__,__FILE__);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user