nieuws: ignore missing image/contents of new articles
[minimedit.git] / nieuws / index.php
index ad85011716c9825248995d28d4573d12ac67a5c8..18f44660d24312bf194fdeea9db70752d8070e96 100644 (file)
@@ -13,7 +13,7 @@ if ($page and !is_numeric($page)) {
        $article = new ArchiveArticle("$Page$Args.html");
        $Place[1] = ' <small class="date">'.$article->date.'</small>';
        print preg_replace('{(?<=<h2>)(.*?)(?=</h2>)}', ($edit ?: '\1').' [[1]]', ob_get_clean());
-       if ($article->image) {
+       if ($article->file and $article->image) {
                $Place['image'] = "https://lijtweg.nl/".$article->thumb('600x');
        }
        if (!empty($User['admin'])) {