summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2012-12-29 14:35:53 +0100
committerPhilip Häusler <msquare@notrademark.de>2012-12-29 14:35:53 +0100
commitb60603d76c286937875afb0ba267be3d7f880a21 (patch)
treeff0738ceae8c54a1fa5a5f95647017362852d24c /includes
parent6432401d9c4bb36e2a82d95227f26a6bc7810d5b (diff)
news reload duplication bug fixed
Diffstat (limited to 'includes')
-rw-r--r--includes/pages/user_news.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/pages/user_news.php b/includes/pages/user_news.php
index 95cc345e..a8d819d0 100644
--- a/includes/pages/user_news.php
+++ b/includes/pages/user_news.php
@@ -107,7 +107,7 @@ function user_news_comments() {
function user_news() {
global $DISPLAY_NEWS, $privileges, $user;
- $html = "";
+ $html = msg();
if (isset ($_POST["text"]) && isset ($_POST["betreff"]) && in_array("admin_news", $privileges)) {
if (!isset ($_POST["treffen"]) || !in_array("admin_news", $privileges))
@@ -116,7 +116,8 @@ function user_news() {
"VALUES ('" . sql_escape(time()) . "', '" . sql_escape($_POST["betreff"]) . "', '" . sql_escape($_POST["text"]) . "', '" . sql_escape($user['UID']) .
"', '" . sql_escape($_POST["treffen"]) . "');");
engelsystem_log("Created news: " . $_POST["betreff"] . ", treffen: " . $_POST["treffen"]);
- $html .= success(Get_Text(4), true);
+ success(Get_Text(4));
+ redirect(page_link_to('user_news'));
}
if (isset ($_REQUEST['page']) && preg_match("/^[0-9]{1,}$/", $_REQUEST['page']))