From a8510bc5cafd8e1045d12b2d0666cda1d8af72e0 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Sun, 13 Sep 2015 04:03:17 -0400 Subject: [PATCH] Merge pull request #297 from Enclavet/master --- plugins/enigma/lib/enigma_engine.php | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/enigma/lib/enigma_engine.php b/plugins/enigma/lib/enigma_engine.php index e2dbd9d..b79e995 100644 --- a/plugins/enigma/lib/enigma_engine.php +++ b/plugins/enigma/lib/enigma_engine.php @@ -1075,8 +1075,10 @@ $config = $this->rc->decrypt($config); $config = @unserialize($config); } - - $threshold = time() - $this->password_time; + + if($this->password_time) { + $threshold = time() - $this->password_time; + } $keys = array(); // delete expired passwords -- Gitblit v1.9.1