diff --git a/pandora_console/godmode/reporting/visual_console_builder.php b/pandora_console/godmode/reporting/visual_console_builder.php
index bde687bcdf..43306e109b 100755
--- a/pandora_console/godmode/reporting/visual_console_builder.php
+++ b/pandora_console/godmode/reporting/visual_console_builder.php
@@ -448,7 +448,7 @@ else {
}
// Hash for auto-auth in public link
-$hash = md5($config["dbpass"] . $id_layout . $config["id_user"]);
+$hash = md5($config["dbpass"] . $idVisualConsole . $config["id_user"]);
$buttons = array();
@@ -456,7 +456,7 @@ $buttons['consoles_list'] = array('active' => false,
'text' => '' .
html_print_image ("images/visual_console.png", true, array ("title" => __('Visual consoles list'))) .'');
$buttons['public_link'] = array('active' => false,
- 'text' => ''.
+ 'text' => ''.
html_print_image ("images/camera_mc.png", true, array ("title" => __('Show link to public Visual Console'))).'');
$buttons['data'] = array('active' => false,
'text' => '' .