* [refac bug #56883] check var exist or not.
This commit is contained in:
@@ -1941,7 +1941,7 @@ eof;
|
||||
{
|
||||
if(!isset($executionsStatus[$object->execution]))
|
||||
{
|
||||
$execution = $commonModel->loadModel('execution')->getByID($object->execution);
|
||||
$execution = $commonModel->loadModel('execution')->getByID((int)$object->execution);
|
||||
$executionsStatus[$object->execution] = $execution ? $execution->status : '';
|
||||
}
|
||||
if($executionsStatus[$object->execution] == 'closed' || !empty($config->CRProject)) return false;
|
||||
@@ -1952,7 +1952,7 @@ eof;
|
||||
$project = $commonModel->loadModel('project')->getByID((int)$object->project);
|
||||
$projectsStatus[$object->project] = $project ? $project->status : '';
|
||||
}
|
||||
if($projectsStatus[$object->project] == 'closed') return false;
|
||||
if(isset($object->project) && $projectsStatus[$object->project] == 'closed') return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user