summaryrefslogtreecommitdiff
path: root/includes/pages
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2014-09-08 13:56:22 +0200
committermsquare <msquare@notrademark.de>2014-09-08 13:56:22 +0200
commit213d4580d9df5e1da6af1b728c7402099a6358a4 (patch)
tree1d8510005f91eb9ac9c8fd3e1b33f328cb186016 /includes/pages
parent64a341e084c5c8c8a0dc63a25d80429156d6a705 (diff)
parent0cbac227d9608b76b750d2faee16fd8be5d06935 (diff)
Merge pull request #1 from mortzu/master
Kleinere Codeanpassungen
Diffstat (limited to 'includes/pages')
-rw-r--r--includes/pages/user_ical.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/pages/user_ical.php b/includes/pages/user_ical.php
index 384979d7..911f48aa 100644
--- a/includes/pages/user_ical.php
+++ b/includes/pages/user_ical.php
@@ -19,7 +19,7 @@ function user_ical() {
die("No privilege for ical.");
if (isset ($_REQUEST['export']) && $_REQUEST['export'] == 'user_shifts') {
- require_once ('includes/pages/user_shifts.php');
+ require_once realpath(__DIR__ . '/user_shifts.php');
view_user_shifts();
} else {
$ical_shifts = sql_select("SELECT `Shifts`.*, `Room`.`Name` as `room_name` FROM `ShiftEntry` INNER JOIN `Shifts` ON (`ShiftEntry`.`SID` = `Shifts`.`SID`) INNER JOIN `Room` ON (`Shifts`.`RID` = `Room`.`RID`) WHERE `UID`=" . sql_escape($user['UID']) . " ORDER BY `start`");