Skip to content

Commit 87de886

Browse files
committed
fix for #765
1 parent 10d605b commit 87de886

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

api.include.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9996,8 +9996,7 @@ public static function fromString(ReflectedTable $table, string $value): Conditi
99969996
if (substr($command, 0, 1) == 'n') {
99979997
$negate = true;
99989998
$command = substr($command, 1);
9999-
}
10000-
if (substr($command, 0, 1) == 's') {
9999+
} else if (substr($command, 0, 1) == 's') {
1000110000
$spatial = true;
1000210001
$command = substr($command, 1);
1000310002
}

api.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9996,8 +9996,7 @@ public static function fromString(ReflectedTable $table, string $value): Conditi
99969996
if (substr($command, 0, 1) == 'n') {
99979997
$negate = true;
99989998
$command = substr($command, 1);
9999-
}
10000-
if (substr($command, 0, 1) == 's') {
9999+
} else if (substr($command, 0, 1) == 's') {
1000110000
$spatial = true;
1000210001
$command = substr($command, 1);
1000310002
}

src/Tqdev/PhpCrudApi/Record/Condition/Condition.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ public static function fromString(ReflectedTable $table, string $value): Conditi
4545
if (substr($command, 0, 1) == 'n') {
4646
$negate = true;
4747
$command = substr($command, 1);
48-
}
49-
if (substr($command, 0, 1) == 's') {
48+
} else if (substr($command, 0, 1) == 's') {
5049
$spatial = true;
5150
$command = substr($command, 1);
5251
}

0 commit comments

Comments
 (0)