fix DEFAULT_ARTICLE_LIMIT handling
This commit is contained in:
parent
9f5b331f59
commit
59b7764387
11
tt-rss.php
11
tt-rss.php
|
@ -169,16 +169,17 @@
|
||||||
|
|
||||||
$def_art_limit = get_pref($link, 'DEFAULT_ARTICLE_LIMIT');
|
$def_art_limit = get_pref($link, 'DEFAULT_ARTICLE_LIMIT');
|
||||||
|
|
||||||
print $def_art_limit;
|
if ($def_art_limit >= 0 && !array_key_exists($def_art_limit, $limits)) {
|
||||||
|
|
||||||
if ($def_art_limit >= 0) {
|
|
||||||
$limits[$def_art_limit] = $def_art_limit;
|
$limits[$def_art_limit] = $def_art_limit;
|
||||||
}
|
}
|
||||||
|
|
||||||
asort($limits);
|
|
||||||
|
|
||||||
|
asort($limits);
|
||||||
array_push($limits, 0);
|
array_push($limits, 0);
|
||||||
|
|
||||||
|
if (!$def_art_limit) {
|
||||||
|
$def_art_limit = 30;
|
||||||
|
}
|
||||||
|
|
||||||
foreach ($limits as $key) {
|
foreach ($limits as $key) {
|
||||||
print "<option";
|
print "<option";
|
||||||
if ($key == $def_art_limit) { print " selected"; }
|
if ($key == $def_art_limit) { print " selected"; }
|
||||||
|
|
Loading…
Reference in New Issue