summaryrefslogtreecommitdiff
path: root/includes/pages/admin_news.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/pages/admin_news.php')
-rw-r--r--includes/pages/admin_news.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/includes/pages/admin_news.php b/includes/pages/admin_news.php
index 75d8291e..1d49af80 100644
--- a/includes/pages/admin_news.php
+++ b/includes/pages/admin_news.php
@@ -1,13 +1,12 @@
<?php
-use Engelsystem\Models\News\News;
+use Engelsystem\Models\News;
/**
* @return string
*/
function admin_news()
{
- $user = auth()->user();
$request = request();
if (!$request->has('action')) {
@@ -45,7 +44,7 @@ function admin_news()
form_info(__('Author'), User_Nick_render($user_source)),
form_text('eBetreff', __('Subject'), $news->title),
form_textarea('eText', __('Message'), $news->text),
- form_checkbox('eTreffen', __('Meeting'), $news->is_meeting === true, 1),
+ form_checkbox('eTreffen', __('Meeting'), $news->is_meeting, 1),
form_submit('submit', __('Save'))
],
page_link_to('admin_news', ['action' => 'save', 'id' => $news_id])