mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merged a notice fix
This commit is contained in:
parent
004e11794a
commit
874da31fcd
1 changed files with 6 additions and 5 deletions
|
@ -200,6 +200,12 @@
|
|||
}
|
||||
}
|
||||
|
||||
// first we must verify that the rss feed is loaded
|
||||
// by checking $rss and $rss->items exist before using them
|
||||
if (empty($rss) || empty($rss->items)) {
|
||||
return '';
|
||||
}
|
||||
|
||||
if ($shownumentries > 0 && $shownumentries < count($rss->items) ) {
|
||||
$rss->items = array_slice($rss->items, 0, $shownumentries);
|
||||
}
|
||||
|
@ -230,11 +236,6 @@
|
|||
|
||||
$formatoptions->para = false;
|
||||
|
||||
// first we must verify that the rss feed is loaded
|
||||
// by checking $rss and $rss->items exist before using them
|
||||
if (empty($rss) || empty($rss->items)) {
|
||||
return '';
|
||||
}
|
||||
|
||||
/// Accessibility: markup as a list.
|
||||
$returnstring .= '<ul class="list">'."\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue