Browse Source

do not show dot, if no unread number is shown (#8624)

* do not show dot, if no unread number is shown

* Update app/Controllers/indexController.php

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>

---------

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
maTh 2 weeks ago
parent
commit
1ed2c38c3f
1 changed files with 3 additions and 1 deletions
  1. 3 1
      app/Controllers/indexController.php

+ 3 - 1
app/Controllers/indexController.php

@@ -149,7 +149,9 @@ class FreshRSS_index_Controller extends FreshRSS_ActionController {
 		if (FreshRSS_Context::$get_unread > 0) {
 		if (FreshRSS_Context::$get_unread > 0) {
 			$title = '(' . FreshRSS_Context::$get_unread . ') ' . $title;
 			$title = '(' . FreshRSS_Context::$get_unread . ') ' . $title;
 		}
 		}
-		FreshRSS_View::prependTitle($title . ' · ');
+		if (strlen($title) > 0) {
+			FreshRSS_View::prependTitle($title . ' · ');
+		}
 
 
 		if (FreshRSS_Context::$id_max === '0') {
 		if (FreshRSS_Context::$id_max === '0') {
 			FreshRSS_Context::$id_max = uTimeString();
 			FreshRSS_Context::$id_max = uTimeString();