summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Util.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/Util.pm')
-rw-r--r--Bugzilla/Util.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Util.pm b/Bugzilla/Util.pm
index ca2506ffa..437979c85 100644
--- a/Bugzilla/Util.pm
+++ b/Bugzilla/Util.pm
@@ -413,8 +413,8 @@ sub wrap_hard {
sub format_time {
my ($date, $format, $timezone) = @_;
- # If $format is undefined, try to guess the correct date format.
- if (!defined($format)) {
+ # If $format is not set, try to guess the correct date format.
+ if (!$format) {
if (!ref $date
&& $date =~ /^(\d{4})[-\.](\d{2})[-\.](\d{2}) (\d{2}):(\d{2})(:(\d{2}))?$/)
{