Skip to content

Commit

Permalink
CS
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Sep 7, 2020
1 parent 200a704 commit c07379c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core-bundle/src/Resources/contao/library/Contao/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ 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 indexExists")
$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'])
->indexExists;

Expand Down

0 comments on commit c07379c

Please sign in to comment.