aboutsummaryrefslogtreecommitdiff
path: root/app/views/resources/_common
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/resources/_common')
-rw-r--r--app/views/resources/_common/_grouped_room_list.php2
-rw-r--r--app/views/resources/_common/_room_tr.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/resources/_common/_grouped_room_list.php b/app/views/resources/_common/_grouped_room_list.php
index f3d6b62..a27af17 100644
--- a/app/views/resources/_common/_grouped_room_list.php
+++ b/app/views/resources/_common/_grouped_room_list.php
@@ -64,7 +64,7 @@
<? if ($user) :?>
<?
$perms = [
- 'show_global_admin_actions' => $show_global_admin_actions,
+ 'show_global_admin_actions' => $show_global_admin_actions ?? false,
'show_admin_actions' => $resource->userHasPermission($user, 'admin'),
'show_tutor_actions' => $resource->userHasPermission($user, 'tutor'),
'show_autor_actions' => $resource->userHasPermission($user, 'autor'),
diff --git a/app/views/resources/_common/_room_tr.php b/app/views/resources/_common/_room_tr.php
index 37f26d1..1b9f46a 100644
--- a/app/views/resources/_common/_room_tr.php
+++ b/app/views/resources/_common/_room_tr.php
@@ -19,7 +19,7 @@
* Defaults to false (do not show actions).
* $user_has_booking_rights: Boolean: Whether the user for which this template
* is rendered has booking rights on the resource (true) or not (false).
- * $show_room_picture: Boolean: Whether to display the room picture or not.
+ * $show_picture: Boolean: Whether to display the room picture or not.
* Defaults to false (do not show picture).
* $additional_properties: Array: Additional properties
* that shall be displayed in extra columns.