aboutsummaryrefslogtreecommitdiffstats
path: root/tests/session
diff options
context:
space:
mode:
authormrgoldy <gijsmartens1@gmail.com>2019-04-02 18:01:59 +0200
committermrgoldy <gijsmartens1@gmail.com>2019-04-02 18:01:59 +0200
commit562601fd9bb7ec7ba9dff9132840ed9b231a7f72 (patch)
tree300c7de81048a8f26143afa4bc719b98a60ff951 /tests/session
parentfc625387332c50bc92253a1822ad0607594af736 (diff)
downloadforums-562601fd9bb7ec7ba9dff9132840ed9b231a7f72.tar
forums-562601fd9bb7ec7ba9dff9132840ed9b231a7f72.tar.gz
forums-562601fd9bb7ec7ba9dff9132840ed9b231a7f72.tar.bz2
forums-562601fd9bb7ec7ba9dff9132840ed9b231a7f72.tar.xz
forums-562601fd9bb7ec7ba9dff9132840ed9b231a7f72.zip
[ticket/16007] Correct check_ban_test to boolean
PHPBB3-16007
Diffstat (limited to 'tests/session')
-rw-r--r--tests/session/check_ban_test.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/session/check_ban_test.php b/tests/session/check_ban_test.php
index 04da5f08b9..16a65b0ade 100644
--- a/tests/session/check_ban_test.php
+++ b/tests/session/check_ban_test.php
@@ -72,7 +72,8 @@ class phpbb_session_check_ban_test extends phpbb_session_test_case
{
try
{
- $is_banned = $this->session->check_ban($user_id, $user_ips, $user_email, $return);
+ $ban = $this->session->check_ban($user_id, $user_ips, $user_email, $return);
+ $is_banned = !empty($ban);
}
catch (PHPUnit_Framework_Error_Notice $e)
{