aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard McGirr <rmcgirr83@gmail.com>2016-03-24 07:01:57 -0400
committerRichard McGirr <rmcgirr83@gmail.com>2016-03-24 07:01:57 -0400
commit78bf53587a7974ed6c5e3897bb17a231e51a661d (patch)
tree192b78b5456a824603026fd22f6f5fcbcb37f1b4
parentd9ad14e4c5abcef68b7f4c271034b27768d17e2c (diff)
downloadforums-78bf53587a7974ed6c5e3897bb17a231e51a661d.tar
forums-78bf53587a7974ed6c5e3897bb17a231e51a661d.tar.gz
forums-78bf53587a7974ed6c5e3897bb17a231e51a661d.tar.bz2
forums-78bf53587a7974ed6c5e3897bb17a231e51a661d.tar.xz
forums-78bf53587a7974ed6c5e3897bb17a231e51a661d.zip
[ticket/14051] Add table alias and fix types of property
PHPBB3-14051
-rw-r--r--phpBB/viewforum.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php
index b3b903c96b..5733410bb9 100644
--- a/phpBB/viewforum.php
+++ b/phpBB/viewforum.php
@@ -283,7 +283,7 @@ if ($sort_days)
AND (t.topic_last_post_time >= ' . $min_post_time . '
OR t.topic_type = ' . POST_ANNOUNCE . '
OR t.topic_type = ' . POST_GLOBAL . ')
- AND ' . $phpbb_content_visibility->get_visibility_sql('topic', $forum_id),
+ AND ' . $phpbb_content_visibility->get_visibility_sql('topic', $forum_id, 't.'),
);
/**
@@ -292,10 +292,10 @@ if ($sort_days)
* @event core.viewforum_modify_sort_data_sql
* @var int forum_id The forum_id whose topics are being listed
* @var int start Variable containing start for pagination
- * @var array sort_days The oldest topic displayable in elapsed days
- * @var array sort_key The sorting by. It is one of the first character of (in low case):
+ * @var int sort_days The oldest topic displayable in elapsed days
+ * @var string sort_key The sorting by. It is one of the first character of (in low case):
* Author, Post time, Replies, Subject, Views
- * @var array sort_dir Either "a" for ascending or "d" for descending
+ * @var string sort_dir Either "a" for ascending or "d" for descending
* @var array sql_array The SQL array to get the data of all topics
* @since 3.1.9-RC1
*/