X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=DataObjects%2FCore_person.php;h=b22033e144bf4e654a26a82395f8202bfba5c597;hb=f20faebe4c3fcada27e75e7f5ad84d2d801200fd;hp=aa23725fde2b23509cce78eeeb3163317dd3ee94;hpb=4cccc7b5f10010a43778777a250020acf30f5d67;p=Pman.Core diff --git a/DataObjects/Core_person.php b/DataObjects/Core_person.php index aa23725f..b22033e1 100644 --- a/DataObjects/Core_person.php +++ b/DataObjects/Core_person.php @@ -308,15 +308,18 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject } if ( !empty($ff->Pman['local_autoauth']) && - (!empty($_SERVER['SERVER_ADDR'])) && + !empty($_SERVER['SERVER_ADDR']) && + !empty($_SERVER['REMOTE_ADDR']) && ( - $_SERVER['SERVER_ADDR'] == '127.0.0.1' && - $_SERVER['REMOTE_ADDR'] == '127.0.0.1' - ) - || - ( - $_SERVER['SERVER_ADDR'] == '::1' && - $_SERVER['REMOTE_ADDR'] == '::1' + ( + $_SERVER['SERVER_ADDR'] == '127.0.0.1' && + $_SERVER['REMOTE_ADDR'] == '127.0.0.1' + ) + || + ( + $_SERVER['SERVER_ADDR'] == '::1' && + $_SERVER['REMOTE_ADDR'] == '::1' + ) ) ){