Fix undefined value
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 30 Jul 2009 03:09:24 +0000 (21:09 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 30 Jul 2009 03:09:24 +0000 (21:09 -0600)
imp/lib/Sentmail.php

index 08f7fb8..9b57295 100644 (file)
@@ -136,7 +136,7 @@ class IMP_Sentmail
      */
     public function gc()
     {
-        $this->_deleteOldEntries(time() - $this->_params['threshold'] * 86400);
+        $this->_deleteOldEntries(time() - ((isset($this->_params['threshold']) ? $this->_params['threshold'] : 0) * 86400));
     }
 
     /**