mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/9687] Add array reverse only for linux postgres
PHPBB3-9687
This commit is contained in:
parent
66cb07d2f4
commit
040b277fd9
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue