From a233443f155368f58c9c5e2f69e4015d785c7415 Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 11 Jan 2017 13:30:26 -0800 Subject: [PATCH] PHP7 Fix --- e107_plugins/list_new/list_class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e107_plugins/list_new/list_class.php b/e107_plugins/list_new/list_class.php index d78f89800..f23c436fd 100644 --- a/e107_plugins/list_new/list_class.php +++ b/e107_plugins/list_new/list_class.php @@ -604,11 +604,11 @@ class listclass global $qs; $lvisit = defined('USERLV') ? USERLV : time() + 1000; // Set default value - if(vartrue($qs[0]) == "new") + if(!empty($qs[0]) && $qs[0] === "new") { - if(vartrue($this->list_pref['new_page_timelapse'])) + if(!empty($this->list_pref['new_page_timelapse'])) { - if(vartrue($this->list_pref['new_page_timelapse_days']) && is_numeric($this->list_pref['new_page_timelapse_days'])) + if(!empty($this->list_pref['new_page_timelapse_days']) && is_numeric($this->list_pref['new_page_timelapse_days'])) { $days = $this->list_pref['new_page_timelapse_days']; }