diff --git a/workflow/engine/bin/cron.php b/workflow/engine/bin/cron.php index ec985c7a2..e9eb0eca7 100755 --- a/workflow/engine/bin/cron.php +++ b/workflow/engine/bin/cron.php @@ -3,10 +3,6 @@ * cron.php * @package workflow-engine-bin */ -ini_set('display_errors', 1); -error_reporting(E_ALL); -ini_set('memory_limit', '300M'); // nore: this may need to be higher for many projects -$mem_limit = (int) ini_get('memory_limit'); if ( !defined('PATH_SEP') ) { define('PATH_SEP', ( substr(PHP_OS, 0, 3) == 'WIN' ) ? '\\' : '/'); diff --git a/workflow/engine/bin/cron_single.php b/workflow/engine/bin/cron_single.php index 5d5ea8312..928eb67a0 100755 --- a/workflow/engine/bin/cron_single.php +++ b/workflow/engine/bin/cron_single.php @@ -3,10 +3,6 @@ * cron_single.php * @package workflow-engine-bin */ -ini_set('display_errors', 1); -error_reporting(E_ALL); - -ini_set("memory_limit", "256M"); if (!defined('SYS_LANG')) { define('SYS_LANG', 'en'); @@ -823,11 +819,11 @@ function executeCaseSelfService() $taskSelfServiceTimeUnit = $row["TAS_SELFSERVICE_TIME_UNIT"]; $taskSelfServiceTriggerUid = $row["TAS_SELFSERVICE_TRIGGER_UID"]; - if ($calendar->pmCalendarUid == '') { - $calendar->getCalendar(null, $appcacheProUid, $taskUid); - $calendar->getCalendarData(); + if ($calendar->pmCalendarUid == '') { + $calendar->getCalendar(null, $appcacheProUid, $taskUid); + $calendar->getCalendarData(); } - + $dueDate = $calendar->calculateDate( $appcacheDelDelegateDate, $taskSelfServiceTime,