diff --git a/pandora_console/general/header.php b/pandora_console/general/header.php
index 5209d6ee46..a12770a50f 100644
--- a/pandora_console/general/header.php
+++ b/pandora_console/general/header.php
@@ -45,10 +45,10 @@ if (isset ($_SESSION["id_usuario"])){
// Third column
echo "
";
// Autorefresh
- if ((isset($_GET["refr"])) OR (isset($_POST["refr"]))) {
- echo " ". lang_string("Autorefresh")."";
+ if ((isset($_GET["refr"]) AND $_GET["refr"] != 0) OR (isset($_POST["refr"]) AND $_POST["refr"] != 0)) {
+ echo " ". lang_string("Autorefresh")."";
} else {
- echo " ". lang_string("Autorefresh")."";
+ echo " ". lang_string("Autorefresh")."";
}
diff --git a/pandora_console/index.php b/pandora_console/index.php
index 820d66a247..56495e3309 100644
--- a/pandora_console/index.php
+++ b/pandora_console/index.php
@@ -114,7 +114,7 @@ if ($intervalo > 0){
-
+
diff --git a/pandora_console/install.php b/pandora_console/install.php
index a1ce98bddd..ce706cf14c 100644
--- a/pandora_console/install.php
+++ b/pandora_console/install.php
@@ -128,9 +128,11 @@ function parse_mysql_dump($url){
if(trim($sql_line) != "" && strpos($sql_line, "--") === false){
$query .= $sql_line;
if(preg_match("/;[\040]*\$/", $sql_line)){
- // echo "DEBUG $query ";
- if (!$result = mysql_query($query))
+ //echo "DEBUG $query "; //Uncomment for debug
+ if (!$result = mysql_query($query)) {
+ // echo mysql_errno() . ": " . mysql_error(); //Uncomment for debug
return 0;
+ }
$query = "";
}
}
diff --git a/pandora_console/pandoradb_data.sql b/pandora_console/pandoradb_data.sql
index 6b5850d361..22614a928b 100644
--- a/pandora_console/pandoradb_data.sql
+++ b/pandora_console/pandoradb_data.sql
@@ -62,7 +62,6 @@ INSERT INTO `tconfig` VALUES
(18, 'graph_color2', '#42D100'),
(19, 'graph_color3', '#89FF09'),
(20, 'sla_period', '604800');
-;
UNLOCK TABLES;
/*!40000 ALTER TABLE `tconfig` ENABLE KEYS */;
|