diff options
Diffstat (limited to 'templates/user_index.php')
-rw-r--r-- | templates/user_index.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/user_index.php b/templates/user_index.php index 20baac2f..ac8f086e 100644 --- a/templates/user_index.php +++ b/templates/user_index.php @@ -27,7 +27,7 @@ <?= $user['is_admin'] ? t('Yes') : t('No') ?> </td> <td> - <?= $projects[$user['default_project_id']] ?> + <?= (isset($user['default_project_id']) && isset($projects[$user['default_project_id']])) ? $projects[$user['default_project_id']] : t('None'); ?> </td> <td> <?php if ($_SESSION['user']['is_admin'] == 1 || $_SESSION['user']['id'] == $user['id']): ?> @@ -45,4 +45,4 @@ </table> <?php endif ?> </section> -</section>
\ No newline at end of file +</section> |