diff options
| -rw-r--r-- | phpBB/phpbb/user.php | 2 | ||||
| -rw-r--r-- | phpBB/viewforum.php | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/phpbb/user.php b/phpBB/phpbb/user.php index f5ad5096bb..faedd79703 100644 --- a/phpBB/phpbb/user.php +++ b/phpBB/phpbb/user.php @@ -725,7 +725,7 @@ class user extends \phpbb\session $utc = new \DateTimeZone('UTC'); } - $time = new $this->datetime($this, "@$gmepoch", $utc); + $time = new $this->datetime($this, '@' . (int) $gmepoch, $utc); $time->setTimezone($this->timezone); return $time->format($format, $forcedate); diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php index 5733410bb9..ee9c700e6b 100644 --- a/phpBB/viewforum.php +++ b/phpBB/viewforum.php @@ -308,7 +308,10 @@ if ($sort_days) 'sql_array', ); extract($phpbb_dispatcher->trigger_event('core.viewforum_modify_sort_data_sql', compact($vars))); + $result = $db->sql_query($db->sql_build_query('SELECT', $sql_array)); + $topics_count = (int) $db->sql_fetchfield('num_topics'); + $db->sql_freeresult($result); if (isset($_POST['sort'])) { |
