From b76454dd835d24e14ebd2cfeba1508f9cf1fc12e Mon Sep 17 00:00:00 2001 From: Oleg Pudeyev Date: Thu, 19 Apr 2012 20:27:21 -0400 Subject: [PATCH] [feature/prune-users] Use empty for checking array size. PHPBB3-9622 --- phpBB/includes/functions_user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index 940018ebad..3db0d9ba96 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -357,7 +357,7 @@ function user_delete($mode, $user_ids, $retain_username = true) } $db->sql_freeresult($result); - if (!$user_rows) + if (empty($user_rows)) { return false; }