X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=VerifyAccess.php;fp=VerifyAccess.php;h=36ca2943826f6ca49ea49dc58e4f09296c06d967;hb=0a9577691693a9c8390f32d1eaa35a585e3d104c;hp=2be5a92ab8f4ba604f5f1ebdc323e6e86d1954e7;hpb=bb02a74fa4bbf96c79d170df1c933e517194f06c;p=Pman.Core diff --git a/VerifyAccess.php b/VerifyAccess.php index 2be5a92a..36ca2943 100644 --- a/VerifyAccess.php +++ b/VerifyAccess.php @@ -81,7 +81,7 @@ class Pman_Core_VerifyAccess extends Pman $core_ip_access->setFrom(array( 'status' => empty($_REQUEST['status']) ? 0 : $_REQUEST['status'], - 'expire_dt' => empty($_REQUEST['expire_dt']) ? '' : date('Y-m-d', strtotime($_REQUEST['expire_dt'])), + 'expire_dt' => ($_REQUEST['status'] != -2 || empty($_REQUEST['expire_dt'])) ? '' : date('Y-m-d', strtotime($_REQUEST['expire_dt'])), 'authorized_by' => $core_person->id ));