X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/0826661558e00b7f64011320fe7b039e343521da..ce75a1205dead0b208a050d08288531c899459a3:/page.php diff --git a/page.php b/page.php index 7c4f8b1..50e098a 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' => empty($User) ? '' : $User['name'], + 'url' => htmlspecialchars($_SERVER['REQUEST_URI']), +]; + # global html if (!$found) {