179 bis 190:
// fetch the
feed
$fetchedFeed = $this->fetchFeed($feedData->rss_source);
//
loop through all elements
foreach($fetchedFeed->get_items() AS $singleItem) {
// check if the post already exists
$numExisting = mysql_query("select id from {$table_prefix}posts where guid='".db_escape($singleItem->get_id())."'");
// only continue, if the guid does not exist
if(mysql_num_rows($numExisting) <= 0) {
// does not exist - import it
$this->importItem($singleItem, $feedData->cat_ID);