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:
commit
4e18b82165
|
@ -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)) {
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue