pjc 5 years ago
parent
commit
e2cacb35d6
1 changed files with 5 additions and 5 deletions
  1. 5
    5
      classes/torrentsearch.class.php

+ 5
- 5
classes/torrentsearch.class.php View File

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

Loading…
Cancel
Save