The ORDER BY should be at $options.
This was throwing errors in PHP 5.4 due to the array being
converted to a string down at Database.php:862
Fixes
50ee1d2
Change-Id: Ifb0fc70144242f25fc916fb8d380ed3e2d334fb9
$db = wfGetDB( DB_SLAVE );
- $res = $db->select( $table, $fields, $condition, array( 'ORDER BY' => $fields ) );
+ $res = $db->select( $table, $fields, $condition, wfGetCaller(), array( 'ORDER BY' => $fields ) );
$this->assertNotEmpty( $res, "query failed: " . $db->lastError() );
$i = 0;