- Prevent a warning if the user has no types on delete

This commit is contained in:
dave 2009-09-26 20:41:36 +00:00
parent 64dba39a57
commit aaac5b4806

View File

@ -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) {