Fix non traversable var
This commit is contained in:
parent
90bbb9beac
commit
c4b87d01ce
@ -102,10 +102,12 @@ 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();
|
||||||
|
if (is_array($arrayofblogs)) {
|
||||||
foreach ($arrayofblogs as $blog) {
|
foreach ($arrayofblogs as $blog) {
|
||||||
$blog->fullpageurl = $website->virtualhost.'/'.$blog->pageurl.'.php';
|
$blog->fullpageurl = $website->virtualhost.'/'.$blog->pageurl.'.php';
|
||||||
$eventarray[] = $blog;
|
$eventarray[] = $blog;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
require_once DOL_DOCUMENT_ROOT."/core/lib/xcal.lib.php";
|
require_once DOL_DOCUMENT_ROOT."/core/lib/xcal.lib.php";
|
||||||
require_once DOL_DOCUMENT_ROOT."/core/lib/date.lib.php";
|
require_once DOL_DOCUMENT_ROOT."/core/lib/date.lib.php";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user