summaryrefslogtreecommitdiff
path: root/tt-rss.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-12-21 19:45:18 +0100
committerAndrew Dolgov <[email protected]>2005-12-21 19:45:18 +0100
commit59b7764387a7e47ad4526ebdcf71a3cf2da75a2d (patch)
tree7fdab650d4a9c56cdc06a9d9a68652992194faab /tt-rss.php
parent9f5b331f598da114f46f068ac2482444093c86fc (diff)
fix DEFAULT_ARTICLE_LIMIT handling
Diffstat (limited to 'tt-rss.php')
-rw-r--r--tt-rss.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/tt-rss.php b/tt-rss.php
index b225a1cee..f0203e556 100644
--- a/tt-rss.php
+++ b/tt-rss.php
@@ -169,16 +169,17 @@
$def_art_limit = get_pref($link, 'DEFAULT_ARTICLE_LIMIT');
- print $def_art_limit;
-
- if ($def_art_limit >= 0) {
+ if ($def_art_limit >= 0 && !array_key_exists($def_art_limit, $limits)) {
$limits[$def_art_limit] = $def_art_limit;
}
-
- asort($limits);
+ asort($limits);
array_push($limits, 0);
+ if (!$def_art_limit) {
+ $def_art_limit = 30;
+ }
+
foreach ($limits as $key) {
print "<option";
if ($key == $def_art_limit) { print " selected"; }