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