fix E_NOTICE in rss
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@616 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
parent
7240d693de
commit
5fd780c8a9
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ if ($usecache) {
|
||||||
if (isset($_GET['count'])) {
|
if (isset($_GET['count'])) {
|
||||||
$rssEntries = (int)$_GET['count'];
|
$rssEntries = (int)$_GET['count'];
|
||||||
}
|
}
|
||||||
if ($rssEntries <= 0) {
|
if (!isset($rssEntries) || $rssEntries <= 0) {
|
||||||
$rssEntries = $defaultRssEntries;
|
$rssEntries = $defaultRssEntries;
|
||||||
} else if ($rssEntries > $maxRssEntries) {
|
} else if ($rssEntries > $maxRssEntries) {
|
||||||
$rssEntries = $maxRssEntries;
|
$rssEntries = $maxRssEntries;
|
||||||
|
|
Loading…
Reference in a new issue