summaryrefslogtreecommitdiff
path: root/includes/pages/admin_news.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-10-08 21:15:56 +0200
committermsquare <msquare@notrademark.de>2018-10-31 13:43:23 +0100
commit2dcb7cc2de448c664bbc9a7112f9cb13dc15c516 (patch)
treee409cf77e97c91ff27b0e61f2a982519fdfdf76f /includes/pages/admin_news.php
parentd15946df2dfb0ae2f0ca9371e5c8071df91ab45a (diff)
Replaced some global `$user` variables
Diffstat (limited to 'includes/pages/admin_news.php')
-rw-r--r--includes/pages/admin_news.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/pages/admin_news.php b/includes/pages/admin_news.php
index 8a3fe9c2..d387e06b 100644
--- a/includes/pages/admin_news.php
+++ b/includes/pages/admin_news.php
@@ -7,7 +7,8 @@ use Engelsystem\Database\DB;
*/
function admin_news()
{
- global $user, $privileges;
+ global $privileges;
+ $user = Auth()->user();
$request = request();
if (!$request->has('action')) {
@@ -77,7 +78,7 @@ function admin_news()
time(),
strip_tags($request->postData('eBetreff')),
$text,
- $user['UID'],
+ $user->id,
$request->has('eTreffen') ? 1 : 0,
$news_id
]