X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/b95195ed4540a07ac0f31c363101698ada841d67..297195ea7cb59ede5d39d7f3c56fdfd2ead376f7:/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) {