Skip to content

Commit a485fd1

Browse files
committed
Merge pull request #116 from phpcr/fix-update
fix query check
2 parents 561ba77 + 158b7b7 commit a485fd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PHPCR/Util/Console/Command/NodesUpdateCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
9999
);
100100
}
101101

102-
if (strtoupper(substr($query, 0, 6) != 'SELECT')) {
102+
if (strtoupper(substr($query, 0, 6)) != 'SELECT') {
103103
throw new \InvalidArgumentException(sprintf(
104104
'Query doesn\'t look like a SELECT query: "%s"',
105105
$query

0 commit comments

Comments
 (0)