Fix non traversable var

This commit is contained in:
Laurent Destailleur 2020-05-02 03:36:01 +02:00
parent 90bbb9beac
commit c4b87d01ce

View File

@ -102,9 +102,11 @@ if ($rss) {
$MAXNEWS = 20; $MAXNEWS = 20;
$arrayofblogs = $websitepage->fetchAll($website->id, 'DESC', 'date_creation', $MAXNEWS, 0, $filters); $arrayofblogs = $websitepage->fetchAll($website->id, 'DESC', 'date_creation', $MAXNEWS, 0, $filters);
$eventarray = array(); $eventarray = array();
foreach ($arrayofblogs as $blog) { if (is_array($arrayofblogs)) {
$blog->fullpageurl = $website->virtualhost.'/'.$blog->pageurl.'.php'; foreach ($arrayofblogs as $blog) {
$eventarray[] = $blog; $blog->fullpageurl = $website->virtualhost.'/'.$blog->pageurl.'.php';
$eventarray[] = $blog;
}
} }
require_once DOL_DOCUMENT_ROOT."/core/lib/xcal.lib.php"; require_once DOL_DOCUMENT_ROOT."/core/lib/xcal.lib.php";