Commit 4e974f1b authored by Jerome Mariette's avatar Jerome Mariette
Browse files

fixe a bug with empty project

parent 3ff0e830
......@@ -57,12 +57,13 @@ along with this program. If not, see <>.
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade in active" id="runs">
{* Find out if the current user is super user of a run *}
{if $projects[key($projects)].is_admin}
{if $project_runs|@count == 0}
{assign var="is_at_least_admin_of_1_run" value=false}
{elseif $projects[key($projects)].is_admin}
{assign var="is_at_least_admin_of_1_run" value=true}
{assign var="is_at_least_admin_of_1_run" value=false}
{assign var="runs" value=$project_runs}
{include file='run_table.tpl'}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment