DataObjects/Core_locking.php
[Pman.Core] / DataObjects / Person.php
index 90e69cb..dc5ad57 100644 (file)
@@ -135,6 +135,7 @@ class Pman_Core_DataObjects_Person extends DB_DataObject
         $u = DB_DataObject::factory('Person');
         $ff = HTML_FlexyFramework::get();
         if (!empty($ff->Pman['local_autoauth']) && 
+            (!empty($_SERVER['SERVER_ADDR'])) &&
             ($_SERVER['SERVER_ADDR'] == '127.0.0.1') &&
             ($_SERVER['REMOTE_ADDR'] == '127.0.0.1') &&
             $u->get('email', $ff->Pman['local_autoauth'])
@@ -402,7 +403,7 @@ class Pman_Core_DataObjects_Person extends DB_DataObject
         } 
         
         if (!empty($q['query']['comptype_or_company_id'])) {
-            DB_DataObject::debugLevel(1);
+           // DB_DataObject::debugLevel(1);
             $bits = explode(',', $q['query']['comptype_or_company_id']);
             $id = (int) array_pop($bits);
             $ct = $this->escape($bits[0]);