login: userless handler call to obtain metadata
[minimedit.git] / issue / index.php
index 181d5b73e6380fec368787929fe291dace82030b..e8a36d21e2efb3f3470f2ff17441b553a46e7f59 100644 (file)
@@ -15,6 +15,7 @@ if ($id and ctype_digit($id)) {
 
        $Page->title .= ': '.htmlspecialchars($Issue->subject);
        $Page->teaser = $Issue->body;
+       if (!$User) return;
        $Page->body = $replies;  # find image
 
        print "<h2>{$Page->title}</h2>\n";
@@ -40,6 +41,7 @@ if ($id and ctype_digit($id)) {
        print "</div>\n";
        return;
 }
+elseif (!$User) return;
 
 if ($_POST) {
                require_once 'upload.inc.php';
@@ -97,4 +99,4 @@ while ($row = $query->fetch()) {
        print "</a></div></li>\n";
 }
 print "</ul>\n";
-$Place['issuelist'] = ob_get_clean();
+$Page->place['issuelist'] = ob_get_clean();