aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/resources/booking.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/resources/booking.php')
-rw-r--r--app/controllers/resources/booking.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/controllers/resources/booking.php b/app/controllers/resources/booking.php
index 294aeaa..a4722ed 100644
--- a/app/controllers/resources/booking.php
+++ b/app/controllers/resources/booking.php
@@ -242,9 +242,7 @@ class Resources_BookingController extends AuthenticatedController
return true;
}
- $template_factory = new Flexi_TemplateFactory(
- $GLOBALS['STUDIP_BASE_PATH'] . '/locale/'
- );
+ $template_factory = new Flexi\Factory($GLOBALS['STUDIP_BASE_PATH'] . '/locale/');
$derived_resource = $booking->resource->getDerivedClassInstance();
$system_lang = $_SESSION['_language'];
@@ -1354,7 +1352,7 @@ class Resources_BookingController extends AuthenticatedController
$resource,
$time_intervals,
[1, 3],
- ($this->booking->id ? [$this->booking->id] : [])
+ isset($this->booking->id) ? [$this->booking->id] : []
);
$reservations_to_overwrite = array_merge(
$reservations_to_overwrite,