Browse Source

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

tags/2.0.0-beta
Taufan Aditya 12 years ago
parent
commit
dc73c916fc
  1. 2
      framework/helpers/base/ArrayHelper.php

2
framework/helpers/base/ArrayHelper.php

@ -272,7 +272,7 @@ class ArrayHelper
foreach ($keys as $i => $key) {
$flag = $sortFlag[$i];
$cs = $caseSensitive[$i];
if (!$cs && ($flag === SORT_STRING || $flag === SORT_NATURAL)) {
if (!$cs && ($flag === SORT_STRING)) {
if (defined('SORT_FLAG_CASE')) {
$flag = $flag | SORT_FLAG_CASE;
$args[] = static::getColumn($array, $key);

Loading…
Cancel
Save