Diff for Metafox/db.inc.php between version 1.88 and 1.89
| version 1.88, 2019/11/02 12:19:23 |
version 1.89, 2019/11/02 12:26:51 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/db.inc.php,v 1.87 2018/02/11 21:38:42 nepto Exp $ */ |
/* $Platon: Metafox/db.inc.php,v 1.88 2019/11/02 12:19:23 nepto Exp $ */ |
| |
|
| /* |
/* |
| * updates: 23/5/2001, 29/7/2001, 11/10/2001, 2/11/2001, 11/1/2002, 23/7/2002 |
* updates: 23/5/2001, 29/7/2001, 11/10/2001, 2/11/2001, 11/1/2002, 23/7/2002 |
| Line 1687 function ezin_get_rss_articles($source) |
|
| Line 1687 function ezin_get_rss_articles($source) |
|
| |
|
| $rss_arr = xml2ary($rss_xml); |
$rss_arr = xml2ary($rss_xml); |
| $items = $rss_arr['rss']['_c']['channel']['_c']['item']; |
$items = $rss_arr['rss']['_c']['channel']['_c']['item']; |
| if (count($rss_arr['rss']['_c']['channel']['_c']['item']) == 1) { |
|
| $items = array('_c' => $items); |
|
| } |
|
| if (!is_array($items)) { |
if (!is_array($items)) { |
| return array(); |
return array(); |
| } |
} |
| |
if (count($items) == 1) { |
| |
$items = array('_c' => $items); |
| |
} |
| $section = ezin_get_section($source['section_id']); |
$section = ezin_get_section($source['section_id']); |
| foreach($items as $item) { |
foreach($items as $item) { |
| $article = array( |
$article = array( |
Platon Group <platon@platon.org> http://platon.org/
|
|