From e6245524a42f313f42d6cd58efbf21db28110d7f Mon Sep 17 00:00:00 2001 From: "Marcel Kapfer (mmk2410)" Date: Mon, 6 Jun 2016 22:22:16 +0200 Subject: [PATCH] better code style for ArticleGenerator::getArray --- res/php/ArticleGenerator.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/res/php/ArticleGenerator.php b/res/php/ArticleGenerator.php index f21da14..e66f259 100644 --- a/res/php/ArticleGenerator.php +++ b/res/php/ArticleGenerator.php @@ -275,6 +275,10 @@ class ArticleGenerator public function getArray($directory, $articlefile) { $article = file_get_contents($directory . $articlefile); + $title = ""; + $date = ""; + $author = ""; + $tags = array(); if (substr($article, 0, 6) == "%TITLE") { // get and remove the title $title = substr($article, 8, strpos($article, "\n") - 8);