1
0
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:
Marc Alexander 2023-07-31 20:41:17 +02:00
parent 66cb07d2f4
commit 040b277fd9
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -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);
}