* check not set vars.

This commit is contained in:
王怡栋
2021-09-03 15:53:55 +08:00
parent 1cb8080613
commit 9c7d248d0c
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -1350,9 +1350,11 @@ EOD;
{
global $lang, $app;
$object = $app->dbh->query('SELECT project,type FROM ' . TABLE_EXECUTION . " WHERE `id` = '$executionID'")->fetch();
if(empty($object)) return;
$executionPairs = array();
$userCondition = !$app->user->admin ? " AND `id` IN ({$app->user->view->sprints}) " : '';
$object = $app->dbh->query('SELECT project,type FROM ' . TABLE_EXECUTION . " WHERE `id` = '$executionID'")->fetch();
$orderBy = $object->type == 'stage' ? 'ORDER BY `id` ASC' : 'ORDER BY `id` DESC';
$executionList = $app->dbh->query("SELECT id,name FROM " . TABLE_EXECUTION . " WHERE `project` = '{$object->project}' AND `deleted` = '0' $userCondition $orderBy")->fetchAll();
foreach($executionList as $execution)