diff --git a/module/project/model.php b/module/project/model.php index d1e53ca07a..2546f3e5d0 100644 --- a/module/project/model.php +++ b/module/project/model.php @@ -1699,7 +1699,7 @@ class projectModel extends model } /* Delete the execution linked products that is not linked with the execution. */ - if($projectID) + if((int)$projectID > 0) { $executions = $this->dao->select('id')->from(TABLE_EXECUTION)->where('project')->eq((int)$projectID)->fetchPairs('id'); $this->dao->delete()->from(TABLE_PROJECTPRODUCT)->where('project')->in($executions)->andWhere('product')->notin($products)->exec();