*** t3lib/class.t3lib_tstemplate.php.bak 2013-02-14 15:47:13.453331445 +0100 --- t3lib/class.t3lib_tstemplate.php 2013-02-14 16:03:17.693207635 +0100 *************** *** 1234,1246 **** public static function sortedKeyList($setupArr, $acceptOnlyProperties = FALSE) { $keyArr = array(); $setupArrKeys = array_keys($setupArr); ! foreach ($setupArrKeys as $key) { ! if ($acceptOnlyProperties || t3lib_utility_Math::canBeInterpretedAsInteger($key)) { ! $keyArr[] = intval($key); ! } ! } $keyArr = array_unique($keyArr); sort($keyArr); return $keyArr; } --- 1234,1254 ---- public static function sortedKeyList($setupArr, $acceptOnlyProperties = FALSE) { $keyArr = array(); $setupArrKeys = array_keys($setupArr); ! $setupArrKeys = array_values($setupArrKeys); ! ! if($acceptOnlyProperties) { ! $keyArr = array_filter( ! $setupArrKeys, ! function($key) { ! return (true == preg_match('/^\d+.*/', $key)); ! } ! ); ! } else { ! $keyArr = $setupArrKeys; ! } $keyArr = array_unique($keyArr); sort($keyArr); + return $keyArr; }