Browse Source

Merge pull request #1143 from Ballballni/patch-1

Update Job.php
Anankke 5 years ago
parent
commit
dc1c3ae643
1 changed files with 6 additions and 5 deletions
  1. 6 5
      src/Command/Job.php

+ 6 - 5
src/Command/Job.php

@@ -558,11 +558,12 @@ class Job extends Command
                         $under_limit = true;
                         $unit_text = '%';
                     }
-                } elseif ($_ENV['notify_limit_mode'] == 'mb' &&
-                    Tools::flowToMB($user_traffic_left) < $_ENV['notify_limit_value']
-                ) {
-                    $under_limit = true;
-                    $unit_text = 'MB';
+                    elseif ($_ENV['notify_limit_mode'] == 'mb' &&
+                        Tools::flowToMB($user_traffic_left) < $_ENV['notify_limit_value']
+                    ) {
+                        $under_limit = true;
+                        $unit_text = 'MB';
+                    }
                 }
 
                 if ($under_limit == true && $user->traffic_notified == false) {