Minor update

This commit is contained in:
Deon George 2013-11-14 23:22:26 +11:00
parent c014a4cec8
commit 610c223cb8
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ abstract class lnApp_Sort {
$code .= 'if (is_array($'.$x.'->'.$key.')) {'; $code .= 'if (is_array($'.$x.'->'.$key.')) {';
$code .= 'asort($'.$x.'->'.$key.');'; $code .= 'asort($'.$x.'->'.$key.');';
$code .= '$x'.$x.' = array_shift($'.$x.'->'.$key.');'; $code .= '$x'.$x.' = array_shift($'.$x.'->'.$key.');';
$code .= '} else'; $code .= '} else ';
$code .= '$x'.$x.' = $'.$x.'->'.$key.';'; $code .= '$x'.$x.' = $'.$x.'->'.$key.';';
} }
@ -60,7 +60,7 @@ abstract class lnApp_Sort {
$code .= 'if (is_array($'.$x.'[\''.$key.'\'])) {'; $code .= 'if (is_array($'.$x.'[\''.$key.'\'])) {';
$code .= 'asort($'.$x.'[\''.$key.'\']);'; $code .= 'asort($'.$x.'[\''.$key.'\']);';
$code .= '$x'.$x.' = array_shift($'.$x.'[\''.$key.'\']);'; $code .= '$x'.$x.' = array_shift($'.$x.'[\''.$key.'\']);';
$code .= '} else'; $code .= '} else ';
$code .= '$x'.$x.' = $'.$x.'[\''.$key.'\'];'; $code .= '$x'.$x.' = $'.$x.'[\''.$key.'\'];';
} }