From 127aaaa0f78848c3df0bfb84ff795baace23ebf2 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 27 Mar 2013 21:35:16 +0400 Subject: [PATCH] add has_note with mode --- include/functions.php | 4 ++++ index.php | 1 + 2 files changed, 5 insertions(+) diff --git a/include/functions.php b/include/functions.php index c2bd7673..f33de076 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 "; } diff --git a/index.php b/index.php index 281f46cf..2c2dc9ec 100644 --- a/index.php +++ b/index.php @@ -170,6 +170,7 @@ + -- 2.39.5