mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
More Notice removal
This commit is contained in:
parent
bb34f0f425
commit
e4c15a5646
@ -497,7 +497,7 @@ class news_shortcodes extends e_shortcode
|
||||
|
||||
$media = explode(",", $this->news_item['news_thumbnail']);
|
||||
|
||||
if(!vartrue($parm['item']))
|
||||
if(empty($parm['item']))
|
||||
{
|
||||
$parm['item'] = 0;
|
||||
}
|
||||
@ -536,7 +536,7 @@ class news_shortcodes extends e_shortcode
|
||||
|
||||
function handleMultiple($parm,$type='image')
|
||||
{
|
||||
if(!vartrue($this->news_item['news_thumbnail']) )
|
||||
if(empty($this->news_item['news_thumbnail']))
|
||||
{
|
||||
return;
|
||||
}
|
||||
@ -561,7 +561,7 @@ class news_shortcodes extends e_shortcode
|
||||
}
|
||||
|
||||
|
||||
if(is_string($parm) || !vartrue($parm['item']))
|
||||
if(is_string($parm) || empty($parm['item']))
|
||||
{
|
||||
$item = 0;
|
||||
$parm = array('item' => 1);
|
||||
|
@ -33,10 +33,10 @@ class news_related // include plugin-folder in the name.
|
||||
while($row = $sql->fetch())
|
||||
{
|
||||
$items[] = array(
|
||||
'title' => $row['news_title'],
|
||||
'title' => varset($row['news_title']),
|
||||
'url' => e107::getUrl()->create('news/view/item',$row), // '{e_BASE}news.php?extend.'.$row['news_id'],
|
||||
'body' => $row['news_summary'],
|
||||
'image' => $row['news_image']
|
||||
'body' => varset($row['news_summary']),
|
||||
'image' => varset($row['news_image'])
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user