Silence PHP warnings on article creation since
v3.8-15-g628a397729
(2019-03-02) [nieuws: first paragraph teaser as page description]
in the same fashion as commit
v3.6-26-ge6d26c2062 (2018-09-17)
[nieuws: ignore missing image/contents of new articles].
$edit = !empty($User['admin']) ? htmlspecialchars(@$_GET['edit']) : NULL;
$article = new ArchiveArticle("$Page$Args.html");
$Place['title'] = $edit ?: $article->title;
- $Place['description'] = $article->teaser;
+ if ($article->file) {
+ $Place['description'] = $article->teaser;
+ }
$Place[1] = ' <small class="date">'.$article->date.'</small>';
print preg_replace('{(?<=<h2>)(.*?)(?=</h2>)}', ($edit ?: '\1').' [[1]]', ob_get_clean());
if ($article->file and $article->image) {