diff --git a/app/views/admin/autoinsert/index.php b/app/views/admin/autoinsert/index.php index f69bc173ccd9af28ab687c7a323bce8c51d4a3ec..0d57d4739ca001399118f6819423ce9558f00624 100644 --- a/app/views/admin/autoinsert/index.php +++ b/app/views/admin/autoinsert/index.php @@ -101,7 +101,6 @@ </a> </td> </tr> - <? $i++ ?> <? endforeach; ?> </tbody> </table> diff --git a/app/views/institute/members/_table_body.php b/app/views/institute/members/_table_body.php index 8bce6d2e80b15a665cbe64146791e9b24f1a96ac..2aa3704259ee94ec89eb33d9311a7fa64968adc4 100644 --- a/app/views/institute/members/_table_body.php +++ b/app/views/institute/members/_table_body.php @@ -8,10 +8,10 @@ <th class="actions"> <?= ActionMenu::get() ->setContext($th_title) - ->condition($mail_status) + ->condition($mail_status ?? false) ->addLink( $controller->url_for('messages/write?filter=inst_status', [ - 'who' => $key, + 'who' => $key ?? '', 'default_subject' => Context::get()->Name, 'inst_id' => Context::getId(), ]), @@ -19,10 +19,10 @@ Icon::create('mail', 'clickable'), ['data-dialog' => ''] ) - ->condition($mail_gruppe) + ->condition($mail_gruppe ?? false) ->addLink( $controller->url_for('messages/write', [ - 'group_id' => $group->id, + 'group_id' => $group->id ?? null, 'default_subject' => Context::get()->Name, ]), sprintf(_('Nachricht an alle Mitglieder der Gruppe %s verschicken'), $th_title), diff --git a/app/views/studiengaenge/studiengaenge/studiengaenge.php b/app/views/studiengaenge/studiengaenge/studiengaenge.php index 6d2ba908e0f0a95108e158155548d91c18b5b8c7..cbfc2cc3effde44d6cd6e0ea56a7204e1b0223e1 100644 --- a/app/views/studiengaenge/studiengaenge/studiengaenge.php +++ b/app/views/studiengaenge/studiengaenge/studiengaenge.php @@ -19,8 +19,8 @@ <td class="toggle-indicator"> <a class="mvv-load-in-new-row" href="<?= $controller->action_link('details_studiengang/' . $studiengang->id) ?>"> - <? $ampel_icon = $GLOBALS['MVV_STUDIENGANG']['STATUS']['values'][$studiengang->stat]['icon'] ?> - <? $ampelstatus = $GLOBALS['MVV_STUDIENGANG']['STATUS']['values'][$studiengang->stat]['name'] ?> + <? $ampel_icon = $GLOBALS['MVV_STUDIENGANG']['STATUS']['values'][$studiengang->stat]['icon'] ?? null; ?> + <? $ampelstatus = $GLOBALS['MVV_STUDIENGANG']['STATUS']['values'][$studiengang->stat]['name'] ?? null; ?> <? if ($ampel_icon) : ?> <?= $ampel_icon->asImg(['title' => $ampelstatus, 'style' => 'vertical-align: text-top;']) ?> <? endif; ?>