瀏覽代碼

Correction onread_jump_next

Suite au nouvel identifiant entier pour les catégories et les flux
https://github.com/marienfressinaud/FreshRSS/issues/262
Alexandre Alapetite 12 年之前
父節點
當前提交
863e4a8ef8
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/layout/nav_menu.phtml

+ 2 - 2
app/layout/nav_menu.phtml

@@ -32,7 +32,7 @@
 						$anotherUnreadId = $cat->id ();
 						if ($foundCurrent) break;
 					}
-					$nextGet = strlen ($anotherUnreadId) > 1 ? 'c_' . $anotherUnreadId : 'all';
+					$nextGet = empty ($anotherUnreadId) ? 'all' : 'c_' . $anotherUnreadId;
 					break;
 				case 'f':
 					foreach ($this->cat_aside as $cat) {
@@ -49,7 +49,7 @@
 							break;
 						}
 					}
-					$nextGet = strlen ($anotherUnreadId) > 1 ? 'f_' . $anotherUnreadId : 'c_' . $this->get_c;
+					$nextGet = empty ($anotherUnreadId) ? 'c_' . $this->get_c : 'f_' . $anotherUnreadId;
 					break;
 			}
 		}