prepare("SELECT publication_reactions.reaction, concat(glpi_users.realname,' ',glpi_users.firstname) as fullname FROM publication_reactions ,glpi_users where publication_reactions.id_user = glpi_users.id AND publication_reactions.type = 'jaime' AND publication_reactions.id_publication = ? "); $stmt->bind_param("i", $id); $stmt->execute(); $result = $stmt->get_result(); $List = array(); while ($row = $result->fetch_assoc()) { $List[] = $row; } if(count($List) > 0) return $List; return null; } $result = getReactions($_GET['id']); if( $result == null) Html::redirect($CFG_GLPI["root_doc"]."/front/publications.php"); echo' '; echo'
'; foreach ($result as $res) { echo' '; } echo'
'.$res['fullname'].'

'; $link=$CFG_GLPI["root_doc"]; $user = Session::getCurrentInterface(); if (Session::getCurrentInterface() == "helpdesk") { Html::helpFooter(); } else { Html::footer(); } ?>