X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/c187ac6e57f58c4b3fb5e400e9ca3a61b5ec37f9..e6d26c20628195fde6f3edfb31e5db8d31551adf:/nieuws.inc.php diff --git a/nieuws.inc.php b/nieuws.inc.php index 79f718d..5485315 100644 --- a/nieuws.inc.php +++ b/nieuws.inc.php @@ -29,6 +29,7 @@ class ArchiveArticle function file() { + if (!file_exists($this->page)) return; return fopen($this->page, 'r'); } @@ -54,7 +55,7 @@ class ArchiveArticle function dateparts() { - preg_match('', $this->page, $ymd); + preg_match('', $this->page, $ymd); return $ymd; }