diff --git a/include/classes/news.class.php b/include/classes/news.class.php index bccc6cab..b4de57e2 100644 --- a/include/classes/news.class.php +++ b/include/classes/news.class.php @@ -88,6 +88,7 @@ class News extends Base { if (empty($aData['header'])) return false; if (empty($aData['content'])) return false; if (!is_int($account_id)) return false; + if (@$aData['active']) $active = true; $stmt = $this->mysqli->prepare("INSERT INTO $this->table (account_id, header, content, active) VALUES (?,?,?,?)"); if ($stmt && $stmt->bind_param('issi', $account_id, $aData['header'], $aData['content'], $active) && $stmt->execute()) return true; diff --git a/templates/bootstrap/admin/news/default.tpl b/templates/bootstrap/admin/news/default.tpl index 2bbe31de..d66589b0 100644 --- a/templates/bootstrap/admin/news/default.tpl +++ b/templates/bootstrap/admin/news/default.tpl @@ -18,6 +18,10 @@ +
+ + +