diff --git a/pandora_console/general/logon_ok.php b/pandora_console/general/logon_ok.php
index 6f69b6a456..c3de268dea 100644
--- a/pandora_console/general/logon_ok.php
+++ b/pandora_console/general/logon_ok.php
@@ -199,11 +199,13 @@ if (!empty($all_data)) {
foreach ($news as $article) {
$text_bbdd = io_safe_output($article['text']);
$text = html_entity_decode($text_bbdd);
- hd($text, true);
echo '
'.$article['subject'].' |
';
echo ''.__('by').' '.$article['author'].' '.ui_print_timestamp($article['timestamp'], true).' '.$comparation_suffix.' |
';
echo '';
- echo ' ';
+ if ($article['id_news'] == 1) {
+ echo ' ';
+ }
+
echo nl2br($text);
echo ' |
';
}
diff --git a/pandora_console/include/functions.php b/pandora_console/include/functions.php
index a7e0d69d42..30d64b5a26 100644
--- a/pandora_console/include/functions.php
+++ b/pandora_console/include/functions.php
@@ -2668,7 +2668,7 @@ function get_news($arguments)
case 'mysql':
case 'postgresql':
$sql = sprintf(
- "SELECT subject,timestamp,text,author
+ "SELECT id_news,subject,timestamp,text,author
FROM tnews WHERE id_group IN (%s) AND
modal = %s AND
(expire = 0 OR (expire = 1 AND expire_timestamp > '%s'))