Commit dc73c916 by Taufan Aditya

Fix unsupported flag in php 5.3.x environment [ArrayHelper::multisort]

parent eecd1268
...@@ -272,7 +272,7 @@ class ArrayHelper ...@@ -272,7 +272,7 @@ class ArrayHelper
foreach ($keys as $i => $key) { foreach ($keys as $i => $key) {
$flag = $sortFlag[$i]; $flag = $sortFlag[$i];
$cs = $caseSensitive[$i]; $cs = $caseSensitive[$i];
if (!$cs && ($flag === SORT_STRING || $flag === SORT_NATURAL)) { if (!$cs && ($flag === SORT_STRING)) {
if (defined('SORT_FLAG_CASE')) { if (defined('SORT_FLAG_CASE')) {
$flag = $flag | SORT_FLAG_CASE; $flag = $flag | SORT_FLAG_CASE;
$args[] = static::getColumn($array, $key); $args[] = static::getColumn($array, $key);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment