mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Issue #4918 - Undefined constants cleanup.
This commit is contained in:
@@ -248,7 +248,7 @@ class forum_shortcodes extends e_shortcode
|
||||
$total_new_threads = defined('USERLV') ? e107::getDb()->count('forum_thread', '(*)', "WHERE thread_datestamp>'" . USERLV . "' ") : 0;
|
||||
$total_read_threads = 0;
|
||||
|
||||
if(defset('USERVIEWED') != "")
|
||||
if(defined('USERVIEWED') && defset('USERVIEWED') != "")
|
||||
{
|
||||
$tmp = explode(".", USERVIEWED); // List of numbers, separated by single period
|
||||
$total_read_threads = count($tmp);
|
||||
|
Reference in New Issue
Block a user