public function get_info($id, $table = 'catalog') { $info = parent::get_info($id, $table); $table = 'catalog_' . $this->get_type(); $sql = "SELECT `id` FROM {$table} WHERE `catalog_id` = ?"; $db_results = Dba::read($sql, array($id)); if ($results = Dba::fetch_assoc($db_results)) { $info_type = parent::get_info($results['id'], $table); foreach ($info_type as $key => $value) { if (!$info[$key]) { $info[$key] = $value; } } } return $info; }