forked from science-ation/science-ation
- Prevent a warning if the user has no types on delete
This commit is contained in:
parent
64dba39a57
commit
aaac5b4806
@ -419,7 +419,9 @@ function user_delete($u, $type=false)
|
||||
call_user_func("user_delete_$type", $u);
|
||||
} else {
|
||||
/* Delete the whole user */
|
||||
foreach($u['types'] as $t) call_user_func("user_delete_$t", $u);
|
||||
if(is_array($u['types']) {
|
||||
foreach($u['types'] as $t) call_user_func("user_delete_$t", $u);
|
||||
}
|
||||
$finish_delete = true;
|
||||
}
|
||||
if($finish_delete == true) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user