|
@@ -300,7 +300,7 @@ class TorrentSearch
|
300
|
300
|
$Operator = self::$FieldOperators[''];
|
301
|
301
|
}
|
302
|
302
|
if (!empty($QueryParts['include'])) {
|
303
|
|
- if ($Field == 'taglist') {
|
|
303
|
+ if ($Field === 'taglist') {
|
304
|
304
|
foreach ($QueryParts['include'] as $key => $Tag) {
|
305
|
305
|
$QueryParts['include'][$key] = '( '.$Tag.' | '.$Tag.':* )';
|
306
|
306
|
}
|
|
@@ -357,7 +357,7 @@ class TorrentSearch
|
357
|
357
|
$this->SphQL->where_between('size', [intval(($this->RawTerms['size_min'] ?? 0)*(1024**$Value)), intval(min(PHP_INT_MAX, ($this->RawTerms['size_max'] ?? INF)*(1024**$Value)))]);
|
358
|
358
|
}
|
359
|
359
|
} elseif ($Attribute === 'freetorrent') {
|
360
|
|
- if ($Value == 3) {
|
|
360
|
+ if ($Value === 3) {
|
361
|
361
|
$this->SphQL->where('freetorrent', 0, true);
|
362
|
362
|
$this->UsedTorrentAttrs['freetorrent'] = 3;
|
363
|
363
|
} elseif ($Value >= 0 && $Value < 3) {
|
|
@@ -618,7 +618,7 @@ class TorrentSearch
|
618
|
618
|
*/
|
619
|
619
|
private function process_results()
|
620
|
620
|
{
|
621
|
|
- if (count($this->SphResults) == 0) {
|
|
621
|
+ if (count($this->SphResults) === 0) {
|
622
|
622
|
return;
|
623
|
623
|
}
|
624
|
624
|
$this->Groups = Torrents::get_groups($this->SphResults);
|
|
@@ -692,10 +692,10 @@ class TorrentSearch
|
692
|
692
|
{
|
693
|
693
|
if (isset($this->UsedTorrentAttrs['freetorrent'])) {
|
694
|
694
|
$FilterValue = $this->UsedTorrentAttrs['freetorrent'];
|
695
|
|
- if ($FilterValue == '3' && $Torrent['FreeTorrent'] == '0') {
|
|
695
|
+ if ($FilterValue === '3' && $Torrent['FreeTorrent'] === '0') {
|
696
|
696
|
// Either FL or NL is ok
|
697
|
697
|
return false;
|
698
|
|
- } elseif ($FilterValue != '3' && $FilterValue != (int)$Torrent['FreeTorrent']) {
|
|
698
|
+ } elseif ($FilterValue !== '3' && $FilterValue !== (int)$Torrent['FreeTorrent']) {
|
699
|
699
|
return false;
|
700
|
700
|
}
|
701
|
701
|
}
|