mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-03 04:55:36 +02:00
[ticket/9687] Add array reverse only for linux postgres
PHPBB3-9687
This commit is contained in:
parent
66cb07d2f4
commit
040b277fd9
@ -278,7 +278,7 @@ class ban_manager_test extends \phpbb_session_test_case
|
||||
}
|
||||
|
||||
// Fix weird sorting by postgres
|
||||
if (is_array($expected) && $ban_type == 'email' && $this->db->get_sql_layer() == 'postgres')
|
||||
if (strtolower(substr(PHP_OS, 0, 3)) === 'linux' && is_array($expected) && $ban_type == 'email' && $this->db->get_sql_layer() == 'postgres')
|
||||
{
|
||||
$expected = array_reverse($expected);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user