DataObjects/Core_person.php
authorAlan Knowles <alan@roojs.com>
Mon, 15 Oct 2018 05:08:11 +0000 (13:08 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 15 Oct 2018 05:08:11 +0000 (13:08 +0800)
DataObjects/Core_person.php

index 0b1fbd4..64febb6 100644 (file)
@@ -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) &&
         $default_admin = false;
         if (!empty($ff->Pman['local_autoauth']) && 
             ($ff->Pman['local_autoauth'] === true) &&
-            ($_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'])) &&
             (
                 (
             (!empty($_SERVER['SERVER_ADDR'])) &&
             (
                 (