mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 20:12:14 +09:00
#17967455 플래닛 위젯에 글이 없을 경우 php 오류 생기지 않도록 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6219 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
a134cfc1bb
commit
d6c575ded6
1 changed files with 10 additions and 6 deletions
|
|
@ -34,12 +34,16 @@
|
||||||
$oPlanetModel = &getModel('planet');
|
$oPlanetModel = &getModel('planet');
|
||||||
Context::set('planet', $planet = $oPlanetModel->getPlanet());
|
Context::set('planet', $planet = $oPlanetModel->getPlanet());
|
||||||
|
|
||||||
foreach($output->data as $key => $val) {
|
if(count($output->data)) {
|
||||||
$document_srl = $val->document_srl;
|
foreach($output->data as $key => $val) {
|
||||||
$oPlanet = null;
|
$document_srl = $val->document_srl;
|
||||||
$oPlanet = new PlanetItem();
|
$oPlanet = null;
|
||||||
$oPlanet->setAttribute($val);
|
$oPlanet = new PlanetItem();
|
||||||
$planet_list[] = $oPlanet;
|
$oPlanet->setAttribute($val);
|
||||||
|
$planet_list[] = $oPlanet;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$planet_list = array();
|
||||||
}
|
}
|
||||||
Context::set('planet_list', $planet_list);
|
Context::set('planet_list', $planet_list);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue