diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2012-12-07 16:28:46 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2012-12-07 16:28:46 +0100 |
commit | 7f1b0eeb711c57de82235d7893d793969ed0cfdd (patch) | |
tree | a30ffd12cfe73ea108b42816f78408399cb64784 /phpBB | |
parent | 0f94ff91383ee0ed533048db96a34164ba94b0a4 (diff) | |
download | forums-7f1b0eeb711c57de82235d7893d793969ed0cfdd.tar forums-7f1b0eeb711c57de82235d7893d793969ed0cfdd.tar.gz forums-7f1b0eeb711c57de82235d7893d793969ed0cfdd.tar.bz2 forums-7f1b0eeb711c57de82235d7893d793969ed0cfdd.tar.xz forums-7f1b0eeb711c57de82235d7893d793969ed0cfdd.zip |
[ticket/10714] Compare log_type to false, rather then null
PHPBB3-10714
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/includes/log/log.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/includes/log/log.php b/phpBB/includes/log/log.php index b6f275835c..c2ebedd6f2 100644 --- a/phpBB/includes/log/log.php +++ b/phpBB/includes/log/log.php @@ -278,14 +278,14 @@ class phpbb_log implements phpbb_log_interface break; default: - $log_type = null; + $log_type = false; $sql_additional = ''; } /** * Overwrite log type and limitations before we count and get the logs * - * NOTE: if log_type is not set, no entries will be returned. + * NOTE: if log_type is false, no entries will be returned. * * @event core.get_logs_modify_type * @var string mode Mode of the entries we display @@ -302,7 +302,7 @@ class phpbb_log implements phpbb_log_interface * keywords in log_operation or log_data * @var string profile_url URL to the users profile * @var int log_type Limit logs to a certain type. If log_type - * is not set, no entries will be returned. + * is false, no entries will be returned. * @var string sql_additional Additional conditions for the entries, * e.g.: 'AND l.forum_id = 1' * @since 3.1-A1 @@ -310,7 +310,7 @@ class phpbb_log implements phpbb_log_interface $vars = array('mode', 'count_logs', 'limit', 'offset', 'forum_id', 'topic_id', 'user_id', 'log_time', 'sort_by', 'keywords', 'profile_url', 'log_type', 'sql_additional'); extract($phpbb_dispatcher->trigger_event('core.get_logs_modify_type', $vars)); - if (!isset($log_type)) + if ($log_type === false) { $this->logs_offset = 0; return array(); |