Merge branch '493-fallan-los-adjuntos-de-graficas-en-los-envios-de-mail-de-alerta-open' into 'develop'

493 fallan los adjuntos de graficas en los envios de mail de alerta open

See merge request !248
This commit is contained in:
daniel 2017-03-13 14:03:12 +01:00
commit 4e18b82165
2 changed files with 12 additions and 7 deletions

View File

@ -228,7 +228,7 @@ function parse_mysql_dump($url) {
$file_content = file($url); $file_content = file($url);
$query = ""; $query = "";
foreach($file_content as $sql_line) { 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; $query .= $sql_line;
if(preg_match("/;[\040]*\$/", $sql_line)) { if(preg_match("/;[\040]*\$/", $sql_line)) {
if (!$result = mysql_query($query)) { if (!$result = mysql_query($query)) {
@ -251,7 +251,7 @@ function parse_mysqli_dump($connection, $url) {
$file_content = file($url); $file_content = file($url);
$query = ""; $query = "";
foreach($file_content as $sql_line) { 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; $query .= $sql_line;
if(preg_match("/;[\040]*\$/", $sql_line)) { if(preg_match("/;[\040]*\$/", $sql_line)) {
if (!$result = mysqli_query($connection, $query)) { if (!$result = mysqli_query($connection, $query)) {

File diff suppressed because one or more lines are too long