VerifyAccess.php
authoredward <edward@roojs.com>
Wed, 14 Feb 2018 09:57:41 +0000 (17:57 +0800)
committeredward <edward@roojs.com>
Wed, 14 Feb 2018 09:57:41 +0000 (17:57 +0800)
VerifyAccess.php

index dee7aa7..db5ead8 100644 (file)
@@ -22,12 +22,12 @@ class Pman_Core_VerifyAccess extends Pman
         $core_ip_access = DB_DataObject::factory('core_ip_access');
         
         if(
+                empty($id) ||
+                empty($key) ||
                 empty($ff->Pman['ip_management']) || 
                 empty($ff->Pman['XMPP']) ||
                 empty($ff->Pman['XMPP']['to']) ||
                 !$core_person->get('email', $ff->Pman['XMPP']['to']) ||
-                empty($id) ||
-                empty($key) ||
                 !$core_ip_access->get($id) ||
                 $core_ip_access->authorized_key != $key
         ) {