Skip to content

Commit

Permalink
Avoid PHP notice
Browse files Browse the repository at this point in the history
  • Loading branch information
fguillot committed Apr 16, 2020
1 parent b8630d1 commit 9d22fef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Template/board/table_container.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div id="board-container"
class="<?= ($project['task_limit'] && $project['nb_active_tasks'] > $project['task_limit']) ? 'board-task-list-limit' : '' ?>">
class="<?= ($project['task_limit'] && array_key_exists('nb_active_tasks', $project) && $project['nb_active_tasks'] > $project['task_limit']) ? 'board-task-list-limit' : '' ?>">
<?php if (empty($swimlanes) || empty($swimlanes[0]['nb_columns'])): ?>
<p class="alert alert-error"><?= t('There is no column or swimlane activated in your project!') ?></p>
<?php else: ?>
Expand Down

0 comments on commit 9d22fef

Please sign in to comment.