summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Bug.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/Bug.pm')
-rwxr-xr-xBugzilla/Bug.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index 38ecf0848..8863f5432 100755
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -493,9 +493,9 @@ sub EmitDependList {
sub ValidateTime {
my ($time, $field) = @_;
- if ($time > 99999.99 || $time < 0 || !($time =~ /^(?:\d+(?:\.\d*)?|\.\d+)$/)){
- ThrowUserError("need_positive_number", {field => "$field"}, "abort");
- }
+ if ($time > 99999.99 || $time < 0 || !($time =~ /^(?:\d+(?:\.\d*)?|\.\d+)$/)) {
+ ThrowUserError("need_positive_number", {field => "$field"}, "abort");
+ }
}
sub AUTOLOAD {