git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nieuws: authorise admins by edit subpermissions
[minimedit.git]
/
page.php
diff --git
a/page.php
b/page.php
index f02544bd0b06dbd7add643d19a17e02bbdca69c2..1488f1c5904f7a637208305037bfd73bb02e7861 100644
(file)
--- a/
page.php
+++ b/
page.php
@@
-84,6
+84,10
@@
set_include_path(implode(PATH_SEPARATOR, [ DOCROOT, __DIR__ ]));
function fail($error)
{
http_response_code(500);
+ if (!isset($Article)) {
+ $Article = new ArchiveArticle(NULL);
+ $Article->title = 'Fout';
+ }
include_once 'page.inc.php';
ob_start();
require_once '500.inc.html';