foreach ($liveIdCollection as $liveId => $commandCollection) {
foreach ($commandCollection as $command => $properties) {
if ($command === 'version' && isset($properties['action']) && $properties['action'] === 'swap') {
- if (isset($properties['swapWith']) && t3lib_div::testInt($properties['swapWith'])) {
+ if (isset($properties['swapWith']) && t3lib_utility_Math::canBeInterpretedAsInteger($properties['swapWith'])) {
call_user_func_array(
array($this, $callbackMethod),
array_merge($arguments, array($table, $liveId, $properties))
foreach ($liveIdCollection as $liveIdList => $commandCollection) {
foreach ($commandCollection as $command => $properties) {
if ($command === 'version' && isset($properties['action']) && $properties['action'] === 'setStage') {
- if (isset($properties['stageId']) && t3lib_div::testInt($properties['stageId'])) {
+ if (isset($properties['stageId']) && t3lib_utility_Math::canBeInterpretedAsInteger($properties['stageId'])) {
call_user_func_array(
array($this, $callbackMethod),
array_merge($arguments, array($table, $liveIdList, $properties))