diff --git a/user.inc.php b/user.inc.php index 1f9ad8b..4abcd96 100644 --- a/user.inc.php +++ b/user.inc.php @@ -419,7 +419,7 @@ function user_delete($u, $type=false) call_user_func("user_delete_$type", $u); } else { /* Delete the whole user */ - if(is_array($u['types']) { + if(is_array($u['types'])) { foreach($u['types'] as $t) call_user_func("user_delete_$t", $u); } $finish_delete = true;