From 9512d27a888a44ad3e02d1a191742b0e3ecfe967 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 15 Oct 2018 13:08:57 +0800 Subject: [PATCH] DataObjects/Core_person.php --- DataObjects/Core_person.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/DataObjects/Core_person.php b/DataObjects/Core_person.php index 64febb6f..cccd799d 100644 --- a/DataObjects/Core_person.php +++ b/DataObjects/Core_person.php @@ -295,7 +295,7 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject $default_admin = false; if (!empty($ff->Pman['local_autoauth']) && ($ff->Pman['local_autoauth'] === true) && - (!empty($_SERVER['PATH_INFO']) && // auto-auth is disabled for home page + (!empty($_SERVER['PATH_INFO'])) && // auto-auth is disabled for home page (!empty($_SERVER['SERVER_ADDR'])) && ( ( @@ -331,7 +331,8 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject $u = DB_DataObject::factory($this->tableName()); $ff = HTML_FlexyFramework::get(); - if (!empty($ff->Pman['local_autoauth']) && + if (!empty($ff->Pman['local_autoauth']) && + ($ff->Pman['local_autoauth'] === true) && (!empty($_SERVER['SERVER_ADDR'])) && ( ( -- 2.39.2