mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-20 19:02:14 +09:00
issue 1544 check null value
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10428 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e2e874664e
commit
9453348cb1
2 changed files with 4 additions and 1 deletions
|
|
@ -171,6 +171,10 @@
|
|||
$news[] = $obj;
|
||||
}
|
||||
Context::set('news', $news);
|
||||
if(isset($news) && is_array($news))
|
||||
{
|
||||
Context::set('latestVersion', array_shift($news));
|
||||
}
|
||||
}
|
||||
Context::set('released_version', $buff->zbxe_news->attrs->released_version);
|
||||
Context::set('download_link', $buff->zbxe_news->attrs->download_link);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue