fix some php warnings

This commit is contained in:
Philip Häusler 2012-04-17 14:11:40 +02:00
parent ccdba91c57
commit 046c9e9caf
3 changed files with 5 additions and 3 deletions

View File

@ -31,7 +31,7 @@ function user_meetings() {
function display_news($news) {
global $privileges, $p;
$html .= "";
$html = "";
$html .= '<article class="news' . ($news['Treffen'] == 1 ? ' meeting' : '') . '">';
$html .= '<details>';
$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) . "&nbsp; ";
else
$html .= '<a href="' . page_link_to("news") . '&page=' . $i . '">' . ($i +1) . '</a>&nbsp; ';

View File

@ -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']) . ")

View File

@ -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)"
);