page: read file during article object initialisation
[minimedit.git] / nieuws / index.php
index 18416b32ad342377fe3a5283608b05940e76e99c..0f81de28edcf428bd5dacdc1fa6a945b5751fbe9 100644 (file)
@@ -11,7 +11,7 @@ if ($page and !is_numeric($page)) {
        if ($edit) {
                $Article->title = $edit;
        }
-       if ($Article->file) {
+       if (isset($Article->raw)) {
                $Place['description'] = $Article->teaser;
        }
        $Place[1] = ' <small class="date">'.$Article->date.'</small>';