Browse Source

Normalize catalogue numbers when filling requests

spaghetti 8 years ago
parent
commit
13135ea34d
1 changed files with 2 additions and 3 deletions
  1. 2
    3
      sections/requests/take_fill.php

+ 2
- 3
sections/requests/take_fill.php View File

@@ -90,15 +90,14 @@ if ($RequestCategoryID !== '0' && $TorrentCategoryID !== $RequestCategoryID) {
90 90
 $CategoryName = $Categories[$RequestCategoryID - 1];
91 91
 
92 92
 if ($CategoryName != 'Other') {
93
-  //Commenting out as it's causing some issues with some users being unable to fill, unsure what it is, etc
94 93
   if ($RequestCatalogueNumber) {
95
-    if ($TorrentCatalogueNumber !== $RequestCatalogueNumber) {
94
+    if (str_replace('-', '', strtolower($TorrentCatalogueNumber)) !== str_replace('-', '', strtolower($RequestCatalogueNumber))) {
96 95
       $Err = "This request requires the catalogue number $RequestCatalogueNumber";
97 96
     }
98 97
   }
99 98
 
100 99
   if ($RequestDLSiteID) {
101
-    if ($TorrentDLSiteID !== $RequestDLSiteID) {
100
+    if (strtolower($TorrentDLSiteID) !== strtolower($RequestDLSiteID)) {
102 101
       $Err = "This request requires DLSite ID $RequestDLSiteID";
103 102
     }
104 103
   }

Loading…
Cancel
Save