diff --git a/module/action/model.php b/module/action/model.php index aac9566abb..0c11821c8e 100755 --- a/module/action/model.php +++ b/module/action/model.php @@ -209,8 +209,8 @@ class actionModel extends model { $record = (array)$record; $record['product'] = isset($record['product']) ? ',' . $record['product'] . ',' : ',0,'; - if(!isset($record['project'])) $record['project'] = 0; - if(!isset($record['execution'])) $record['execution'] = 0; + if(empty($record['project'])) $record['project'] = 0; + if(empty($record['execution'])) $record['execution'] = 0; return $record; }