Skip to content

Commit

Permalink
Strict (or not...) fix
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed May 9, 2024
1 parent 7d6852f commit 2fe8ca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion galette/includes/sql_parse.php
Expand Up @@ -148,7 +148,7 @@ function split_sql_file(string $sql, string $delimiter): array
$token_count = count($tokens);
for ($i = 0; $i < $token_count; $i++) {
// Don't wanna add an empty string as the last thing in the array.
if (($i != ($token_count - 1)) || (strlen($tokens[$i] > 0))) {
if (($i != ($token_count - 1)) || (strlen($tokens[$i]) > 0)) {
// This is the total number of single quotes in the token.
$total_quotes = preg_match_all("/'/", $tokens[$i], $matches);
// Counts single quotes that are preceded by an odd number of backslashes,
Expand Down

0 comments on commit 2fe8ca9

Please sign in to comment.