From 088e48c44ae79498f459e79dcf52ff02b2467772 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Mon, 30 Nov 2020 22:43:11 +0100 Subject: [PATCH] page: ignore failed user setup during errors Report auth.inc.php exceptions without breaking on attempted usage of $User->login in output, or missing ArchiveArticle class. --- page.inc.php | 2 +- page.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/page.inc.php b/page.inc.php index 94ef7cf..120fb95 100644 --- a/page.inc.php +++ b/page.inc.php @@ -7,7 +7,7 @@ print "
\n"; ob_start(); include 'menu.inc.html'; ob_start(); -if ($User and $User->login) { +if ($User and property_exists($User, 'login') and $User->login) { print '