summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/functions.php4
-rw-r--r--index.php1
2 files changed, 5 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 ";
}
diff --git a/index.php b/index.php
index 281f46cf9..2c2dc9ecc 100644
--- a/index.php
+++ b/index.php
@@ -170,6 +170,7 @@
<option value="published"><?php echo __('Published') ?></option>
<option value="unread"><?php echo __('Unread') ?></option>
<option value="unread_first"><?php echo __('Unread First') ?></option>
+ <option value="has_note"><?php echo __('With Note') ?></option>
<!-- <option value="noscores"><?php echo __('Ignore Scoring') ?></option> -->
</select>