Skip to content

Commit

Permalink
Update backup.php
Browse files Browse the repository at this point in the history
  • Loading branch information
condor2 authored Feb 26, 2024
1 parent 6dbfc59 commit 4e1a97a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions upload/admin/controller/tool/backup.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,16 @@ public function import(): void {
break;
}

if (isset($sql) && $start) {
if ($start) {
$sql .= $line;

Check failure on line 122 in upload/admin/controller/tool/backup.php

View workflow job for this annotation

GitHub Actions / tests (8.0)

Variable $sql might not be defined.

Check failure on line 122 in upload/admin/controller/tool/backup.php

View workflow job for this annotation

GitHub Actions / tests (8.1)

Variable $sql might not be defined.

Check failure on line 122 in upload/admin/controller/tool/backup.php

View workflow job for this annotation

GitHub Actions / tests (8.2)

Variable $sql might not be defined.

Check failure on line 122 in upload/admin/controller/tool/backup.php

View workflow job for this annotation

GitHub Actions / tests (8.3)

Variable $sql might not be defined.
}

if (isset($sql) && $sql && $start && substr($line, -2) == ";\n") {
$this->db->query(substr($sql, 0, strlen($sql) - 2));
if ($start && substr($line, -2) == ";\n") {
$this->db->query(substr($sql, 0, strlen($sql) -2));

Check failure on line 126 in upload/admin/controller/tool/backup.php

View workflow job for this annotation

GitHub Actions / tests (8.0)

Variable $sql might not be defined.

Check failure on line 126 in upload/admin/controller/tool/backup.php

View workflow job for this annotation

GitHub Actions / tests (8.0)

Variable $sql might not be defined.

Check failure on line 126 in upload/admin/controller/tool/backup.php

View workflow job for this annotation

GitHub Actions / tests (8.1)

Variable $sql might not be defined.

Check failure on line 126 in upload/admin/controller/tool/backup.php

View workflow job for this annotation

GitHub Actions / tests (8.1)

Variable $sql might not be defined.

Check failure on line 126 in upload/admin/controller/tool/backup.php

View workflow job for this annotation

GitHub Actions / tests (8.2)

Variable $sql might not be defined.

Check failure on line 126 in upload/admin/controller/tool/backup.php

View workflow job for this annotation

GitHub Actions / tests (8.2)

Variable $sql might not be defined.

Check failure on line 126 in upload/admin/controller/tool/backup.php

View workflow job for this annotation

GitHub Actions / tests (8.3)

Variable $sql might not be defined.

Check failure on line 126 in upload/admin/controller/tool/backup.php

View workflow job for this annotation

GitHub Actions / tests (8.3)

Variable $sql might not be defined.

$start = false;
} else if ($start && substr($line, -3) == ";\r\n") {
$this->db->query(substr($sql, 0, strlen($sql) -3));

Check failure on line 130 in upload/admin/controller/tool/backup.php

View workflow job for this annotation

GitHub Actions / tests (8.0)

Variable $sql might not be defined.

Check failure on line 130 in upload/admin/controller/tool/backup.php

View workflow job for this annotation

GitHub Actions / tests (8.0)

Variable $sql might not be defined.

Check failure on line 130 in upload/admin/controller/tool/backup.php

View workflow job for this annotation

GitHub Actions / tests (8.1)

Variable $sql might not be defined.

Check failure on line 130 in upload/admin/controller/tool/backup.php

View workflow job for this annotation

GitHub Actions / tests (8.1)

Variable $sql might not be defined.

Check failure on line 130 in upload/admin/controller/tool/backup.php

View workflow job for this annotation

GitHub Actions / tests (8.2)

Variable $sql might not be defined.

Check failure on line 130 in upload/admin/controller/tool/backup.php

View workflow job for this annotation

GitHub Actions / tests (8.2)

Variable $sql might not be defined.

Check failure on line 130 in upload/admin/controller/tool/backup.php

View workflow job for this annotation

GitHub Actions / tests (8.3)

Variable $sql might not be defined.

Check failure on line 130 in upload/admin/controller/tool/backup.php

View workflow job for this annotation

GitHub Actions / tests (8.3)

Variable $sql might not be defined.

$start = false;
}
Expand Down

0 comments on commit 4e1a97a

Please sign in to comment.