aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Channel.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-05-09 18:20:28 -0700
committerzotlabs <mike@macgirvin.com>2018-05-09 18:20:28 -0700
commitd41556a1ea45fe3ef86f6d9d129c8b0d98ee3f2f (patch)
treea4f90b86bf6e62c109d29a4489ce20bbdb5f984d /Zotlabs/Module/Channel.php
parent50796079fa0f129b0fd084e80f345837dccee0e3 (diff)
downloadvolse-hubzilla-d41556a1ea45fe3ef86f6d9d129c8b0d98ee3f2f.tar.gz
volse-hubzilla-d41556a1ea45fe3ef86f6d9d129c8b0d98ee3f2f.tar.bz2
volse-hubzilla-d41556a1ea45fe3ef86f6d9d129c8b0d98ee3f2f.zip
minor regression on date queries from channel page
Diffstat (limited to 'Zotlabs/Module/Channel.php')
-rw-r--r--Zotlabs/Module/Channel.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/Zotlabs/Module/Channel.php b/Zotlabs/Module/Channel.php
index 2ed40047b..9ce57d6eb 100644
--- a/Zotlabs/Module/Channel.php
+++ b/Zotlabs/Module/Channel.php
@@ -248,6 +248,9 @@ class Channel extends \Zotlabs\Web\Controller {
$sql_extra2 .= protect_sprintf(sprintf(" AND item.created >= '%s' ", dbesc(datetime_convert(date_default_timezone_get(),'',$datequery2))));
}
+ if($datequery || $datequery2) {
+ $sql_extra2 .= " and item.item_thread_top != 0 ";
+ }
$itemspage = get_pconfig(local_channel(),'system','itemspage');
\App::set_pager_itemspage(((intval($itemspage)) ? $itemspage : 20));