#25 Prevented an additional s from being tacked on to the end of classes ending with s

Merged
spaghetti merged 1 commits from Ace:master into master 8 years ago

+ 3
- 0
classes/invite_tree.class.php View File

@@ -174,9 +174,12 @@ class INVITE_TREE {
174 174
           if ($LastClass == 'Torrent Celebrity') {
175 175
              $LastClass = 'Torrent Celebrities';
176 176
           } else {
177
+            // Prevent duplicate letterss
178
+            if (substr($LastClass, -1) != 's') {
177 179
               $LastClass.='s';
178 180
             }
179 181
           }
182
+        }
180 183
         $LastClass = "$ClassCount $LastClass (" . number_format(($ClassCount / $Count) * 100) . '%)';
181 184
 
182 185
         $ClassStrings[] = $LastClass;

Loading…
Cancel
Save