From 046c9e9cafbb9e4b73f823be62ab23b47d3ace09 Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Tue, 17 Apr 2012 14:11:40 +0200 Subject: fix some php warnings --- includes/pages/user_news.php | 4 ++-- includes/pages/user_shifts.php | 2 ++ includes/sys_template.php | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/includes/pages/user_news.php b/includes/pages/user_news.php index 69f4022c..fce935e6 100644 --- a/includes/pages/user_news.php +++ b/includes/pages/user_news.php @@ -31,7 +31,7 @@ function user_meetings() { function display_news($news) { global $privileges, $p; - $html .= ""; + $html = ""; $html .= '
'; $html .= '
'; $html .= date("Y-m-d H:i", $news['Datum']) . ', '; @@ -132,7 +132,7 @@ function user_news() { $html .= Get_Text(5); for ($i = 0; $i < $dis_rows; $i++) { - if ($i == $_REQUEST['page']) + if (isset($_REQUEST['page']) && $i == $_REQUEST['page']) $html .= ($i +1) . "  "; else $html .= '' . ($i +1) . '  '; diff --git a/includes/pages/user_shifts.php b/includes/pages/user_shifts.php index b7b504af..f52702e1 100644 --- a/includes/pages/user_shifts.php +++ b/includes/pages/user_shifts.php @@ -282,6 +282,8 @@ function view_user_shifts() { $_SESSION['user_shifts']['days'] = array ( date('Y-m-d') ); + if (!isset ($_SESSION['user_shifts']['rooms']) || count($_SESSION['user_shifts']['rooms']) == 0) + $_SESSION['user_shifts']['rooms'] = array(0); $shifts = sql_select("SELECT `Shifts`.*, `Room`.`Name` as `room_name` FROM `Shifts` JOIN `Room` USING (`RID`) WHERE `Shifts`.`RID` IN (" . implode(',', $_SESSION['user_shifts']['rooms']) . ") diff --git a/includes/sys_template.php b/includes/sys_template.php index 79e9fe77..08e47ee9 100644 --- a/includes/sys_template.php +++ b/includes/sys_template.php @@ -14,7 +14,7 @@ $themes = array ( "8" => "Pastel Style", "4" => "Test Style", "9" => "Test Style 21c3", - "10" => "msquare (cccamp2011)", + "10" => "Engelsystem 2.0", "11" => "msquare (28c3)" ); -- cgit v1.2.3-54-g00ecf