mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix #1118 warning in rss.model.php
This commit is contained in:
parent
98f495c588
commit
575987c7a2
1 changed files with 2 additions and 2 deletions
|
|
@ -14,7 +14,7 @@ class rssModel extends rss
|
|||
|
||||
function getConfig()
|
||||
{
|
||||
$config = getModel('module')->getModuleConfig('rss');
|
||||
$config = getModel('module')->getModuleConfig('rss') ?: new stdClass;
|
||||
$config->use_total_feed = $config->use_total_feed ?: 'Y';
|
||||
$config->feed_document_count = $config->feed_document_count ?: 15;
|
||||
$config->image_url = $config->image . '?' . date('YmdHis', filemtime($config->image));
|
||||
|
|
@ -24,7 +24,7 @@ class rssModel extends rss
|
|||
|
||||
function getRssModuleConfig($module_srl)
|
||||
{
|
||||
$config = getModel('module')->getModulePartConfig('rss', $module_srl);
|
||||
$config = getModel('module')->getModulePartConfig('rss', $module_srl) ?: new stdClass;
|
||||
$config->module_srl = $module_srl;
|
||||
$config->open_rss = $config->open_rss ?: 'N';
|
||||
$config->open_total_feed = $config->open_total_feed ?: 'N';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue