Просмотр исходного кода

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 1 неделя назад
Родитель
Сommit
1ed2c38c3f
1 измененных файлов с 3 добавлено и 1 удалено
  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) {
 			$title = '(' . FreshRSS_Context::$get_unread . ') ' . $title;
 		}
-		FreshRSS_View::prependTitle($title . ' · ');
+		if (strlen($title) > 0) {
+			FreshRSS_View::prependTitle($title . ' · ');
+		}
 
 		if (FreshRSS_Context::$id_max === '0') {
 			FreshRSS_Context::$id_max = uTimeString();