fix url check conditions

This commit is contained in:
ghost 2023-11-26 20:53:31 +02:00
parent ff8b88f49b
commit 133548a98c
4 changed files with 9 additions and 9 deletions

View file

@ -28,7 +28,7 @@ $url = trim($argv[1]);
$crc32url = crc32($url);
// Check URL for exist
$result = $index->search('@url "' . $url . '"')
$result = $index->search('')
->filter('crc32url', $crc32url)
->limit(1)
->get();

View file

@ -255,7 +255,7 @@ foreach($search->get() as $document)
$url = trim($url);
$crc32url = crc32($url);
if (!$index->search('@url "' . $url . '"')
if (!$index->search('')
->filter('crc32url', $crc32url)
->limit(1)
->get()