X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/0826661558e00b7f64011320fe7b039e343521da..765d694a7c932a32c01e6fbfa15d16b5a6454d5a:/page.php diff --git a/page.php b/page.php index 7c4f8b1..554735c 100644 --- a/page.php +++ b/page.php @@ -145,15 +145,17 @@ print "\n\n"; # execute dynamic code -$Place = [ - 'user' => $User['name'], - 'url' => htmlspecialchars($_SERVER['REQUEST_URI']), -]; +$Place = []; if ($Page) { $found |= require "./$Page/index.php"; } +$Place += [ + 'user' => $User ? $User['name'] : '', + 'url' => htmlspecialchars($_SERVER['REQUEST_URI']), +]; + # global html if (!$found) {