page: promote news article class to represent all pages
[minimedit.git] / login / index.php
index c7d705df7c2c69a337a001383591dc12877df3ab..978709e5fe5515f51f66ba30f224bb653915dfbd 100644 (file)
@@ -41,7 +41,6 @@ if (empty($User)) {
        $Place['warn'] = $message;
        $Place['title'] = 'Inloggen';
        if (isset($_REQUEST['goto'])) {
-               require_once 'nieuws.inc.php';
                $target = ltrim($_REQUEST['goto'], '/');
                $target = new ArchiveArticle("$target.html");
                if ($target->file) {
@@ -61,7 +60,7 @@ if (isset($_REQUEST['goto'])) {
        exit;
 }
 
-if (empty($Args) and !empty($User['admin'])) {
+if (empty($Args) and $User and $User->admin) {
        include_once 'login/admin.html';
 }