From af2904b1969c0894c32eb8f1b9acfbdde08be7ae Mon Sep 17 00:00:00 2001 From: Roly Rudy Gutierrez Pinto Date: Fri, 11 May 2018 11:16:33 -0400 Subject: [PATCH] HOR-4547: Classic / Task / Steps / Triggers / Before Assignment / Add PHP Warning: A non-numeric value encountered in /srv/http/processmaker/workflow/engine/classes/PropelTable.php on line 264 PHP Warning: A non-numeric value encountered in /srv/http/processmaker/workflow/engine/classes/PropelTable.php on line 330 --- workflow/engine/classes/PropelTable.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/workflow/engine/classes/PropelTable.php b/workflow/engine/classes/PropelTable.php index 9d2c270f8..08da868cc 100644 --- a/workflow/engine/classes/PropelTable.php +++ b/workflow/engine/classes/PropelTable.php @@ -261,7 +261,8 @@ class PropelTable $totalWidth = 0; foreach ($this->fields as $r => $rval) { if ($this->style[$r]['showInTable'] != '0') { - $totalWidth += $this->style[$r]['colWidth']; + $colWidth = empty($this->style[$r]['colWidth']) ? 0 : $this->style[$r]['colWidth']; + $totalWidth += $colWidth; } } $this->totalWidth = $totalWidth; @@ -327,7 +328,8 @@ class PropelTable $this->tpl->assign("width", $this->style[$r]['colWidth']); } if (isset($this->style[$r]['colWidth'])) { - $this->tpl->assign("widthPercent", ($this->style[$r]['colWidth'] * 100 / $this->totalWidth) . "%"); + $colWidth = empty($this->style[$r]['colWidth']) ? 1 : $this->style[$r]['colWidth']; + $this->tpl->assign("widthPercent", ($colWidth * 100 / $this->totalWidth) . "%"); //Hook for special skin with RTL languajes } if (defined('SYS_LANG_DIRECTION') && SYS_LANG_DIRECTION == 'R') {