diff --git a/ProcessMaker/Repositories/TokenRepository.php b/ProcessMaker/Repositories/TokenRepository.php index 5f6368c3a4..b970f5b1c1 100644 --- a/ProcessMaker/Repositories/TokenRepository.php +++ b/ProcessMaker/Repositories/TokenRepository.php @@ -242,10 +242,10 @@ private function getDueVariable(ActivityInterface $activity, TokenInterface $tok $mustache = new Mustache_Engine(); $mustacheDueVariable = $mustache->render($dueVariable, $instanceData); - return is_numeric($mustacheDueVariable) ? $mustacheDueVariable : '72'; + return is_numeric($mustacheDueVariable) ? $mustacheDueVariable : 72; } - return $activity->getProperty('dueIn', '72'); + return (int) $activity->getProperty('dueIn', '72'); } /**