From adeea26e32d1894372a062f1903f4385d53829d8 Mon Sep 17 00:00:00 2001 From: Julio Cesar Laura Date: Tue, 21 Jan 2014 13:02:08 -0400 Subject: [PATCH] BUG 13938 Line error_reporting(E_ALL) in cron.php and cron_single.php is generating unnecesary errors SOLVED - Unnecesary lines to set the configuration for "display_errors" and "error_reporting" - Delete unnecesary lines and now this configurations is setted with the processmaker configuration (env.ini) --- workflow/engine/bin/cron.php | 4 ---- workflow/engine/bin/cron_single.php | 12 ++++-------- 2 files changed, 4 insertions(+), 12 deletions(-) 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,