From 127aaaa0f78848c3df0bfb84ff795baace23ebf2 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 27 Mar 2013 21:35:16 +0400 Subject: add has_note with mode --- include/functions.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/functions.php b/include/functions.php index c2bd7673b..f33de076b 100644 --- a/include/functions.php +++ b/include/functions.php @@ -2270,6 +2270,10 @@ $view_query_part = " marked = true AND "; } + if ($view_mode == "has_note") { + $view_query_part = " (note IS NOT NULL AND note != '') AND "; + } + if ($view_mode == "published") { $view_query_part = " published = true AND "; } -- cgit v1.2.3