From 5872cd1f491f08f76ff92bebdb2597091a7abc61 Mon Sep 17 00:00:00 2001 From: daniel Date: Mon, 13 Mar 2017 13:32:05 +0100 Subject: [PATCH] fixed errors in install.php mysql --- pandora_console/install.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/install.php b/pandora_console/install.php index f4605705cf..f547a6d9a3 100644 --- a/pandora_console/install.php +++ b/pandora_console/install.php @@ -228,7 +228,7 @@ function parse_mysql_dump($url) { $file_content = file($url); $query = ""; foreach($file_content as $sql_line) { - if (trim($sql_line) != "" && strpos($sql_line, "--") === false) { + if (trim($sql_line) != "" && strpos($sql_line, "-- ") === false) { $query .= $sql_line; if(preg_match("/;[\040]*\$/", $sql_line)) { if (!$result = mysql_query($query)) { @@ -251,7 +251,7 @@ function parse_mysqli_dump($connection, $url) { $file_content = file($url); $query = ""; foreach($file_content as $sql_line) { - if (trim($sql_line) != "" && strpos($sql_line, "--") === false) { + if (trim($sql_line) != "" && strpos($sql_line, "-- ") === false) { $query .= $sql_line; if(preg_match("/;[\040]*\$/", $sql_line)) { if (!$result = mysqli_query($connection, $query)) {