diff options
author | Philip Häusler <msquare@notrademark.de> | 2012-04-17 14:11:40 +0200 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2012-04-17 14:11:40 +0200 |
commit | 046c9e9cafbb9e4b73f823be62ab23b47d3ace09 (patch) | |
tree | ac0a23781b75575b5849445edeac2201049f12f6 /includes/pages/user_news.php | |
parent | ccdba91c57cabebe02b132d5ef49169245bb8b2b (diff) |
fix some php warnings
Diffstat (limited to 'includes/pages/user_news.php')
-rw-r--r-- | includes/pages/user_news.php | 4 |
1 files changed, 2 insertions, 2 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 .= '<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) . " "; else $html .= '<a href="' . page_link_to("news") . '&page=' . $i . '">' . ($i +1) . '</a> '; |