summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-27 21:35:16 +0400
committerAndrew Dolgov <[email protected]>2013-03-27 21:35:16 +0400
commit127aaaa0f78848c3df0bfb84ff795baace23ebf2 (patch)
treed3bdd4c1981c08cd05596acfd8a838c7e03aac0a /include
parent7ad5e726cd45ba4e50292c98146ff6641aa374c5 (diff)
add has_note with mode
Diffstat (limited to 'include')
-rw-r--r--include/functions.php4
1 files changed, 4 insertions, 0 deletions
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 ";
}