"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "inc/entity_rssfeed.class.php" between
glpi-9.3.3.tgz and glpi-9.4.0.tgz

About: GLPI is an IT and asset management software (Information Resource Manager).

entity_rssfeed.class.php  (glpi-9.3.3.tgz):entity_rssfeed.class.php  (glpi-9.4.0.tgz)
skipping to change at line 61 skipping to change at line 61
* Get entities for a rssfeed * Get entities for a rssfeed
* *
* @param $rssfeeds_id ID of the rssfeed * @param $rssfeeds_id ID of the rssfeed
* *
* @return array of entities linked to a rssfeed * @return array of entities linked to a rssfeed
**/ **/
static function getEntities($rssfeeds_id) { static function getEntities($rssfeeds_id) {
global $DB; global $DB;
$ent = []; $ent = [];
$query = "SELECT `glpi_entities_rssfeeds`.* $iterator = $DB->request([
FROM `glpi_entities_rssfeeds` 'FROM' => self::getTable(),
WHERE `rssfeeds_id` = '$rssfeeds_id'"; 'WHERE' => ['rssfeeds_id' => $rssfeeds_id]
]);
foreach ($DB->request($query) as $data) { while ($data = $iterator->next()) {
$ent[$data['entities_id']][] = $data; $ent[$data['entities_id']][] = $data;
} }
return $ent; return $ent;
} }
} }
 End of changes. 2 change blocks. 
4 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)