From 6ec876d862f4c0b2c07f3c70382dd2b33d7aa6c5 Mon Sep 17 00:00:00 2001 From: Malfurious Date: Mon, 27 Sep 2021 21:44:23 -0400 Subject: Fix bug with login page signup form Some PHP update has changed the behavior of referencing a missing key in an array, so the mechanism I was using to specify the default login page tab was bugged (emitting errors) and did not allow to manually switch to signup after the app is initialized. To fix this, simply define the missing values to empty strings. Signed-off-by: Malfurious --- app/model/login.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app') diff --git a/app/model/login.php b/app/model/login.php index 3393281..c98994e 100644 --- a/app/model/login.php +++ b/app/model/login.php @@ -85,12 +85,14 @@ prep: if (count(user::getAll_ordByUname()) == 0) { $noaccounts = true; + $activeTab['login'] = ""; $activeTab['signup'] = "in active"; $tabSwap = false; } else { $activeTab['login'] = "in active"; + $activeTab['signup'] = ""; $tabSwap = settings::allowPublicSignup(); } -- cgit v1.2.3