Skip to content

Commit

Permalink
Fix SQL
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Sep 7, 2020
1 parent b669725 commit 200a704
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core-bundle/src/Resources/contao/library/Contao/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@ public static function indexPage($arrData)
// Calculate the checksum
$arrSet['checksum'] = md5($arrSet['text']);

$blnIndexExists = (bool) $objDatabase->prepare("SELECT EXISTS(SELECT id FROM tl_search WHERE checksum=? AND pid=? AND url=?) as exists")
$blnIndexExists = (bool) $objDatabase->prepare("SELECT EXISTS(SELECT id FROM tl_search WHERE checksum=? AND pid=? AND url=?) as indexExists")
->execute($arrSet['checksum'], $arrSet['pid'], $arrSet['url'])
->exists;
->indexExists;

// The page has already been indexed and has not changed (see #2235)
if ($blnIndexExists)
Expand Down

0 comments on commit 200a704

Please sign in to comment.