diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2011-05-03 07:33:44 +0200 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2011-05-03 07:33:44 +0200 |
commit | f46986f816f424f19de037c6c3f0e5aeeb7934b8 (patch) | |
tree | 7759ac0ece6b6ad8bb1ea891749c217f091e4701 | |
parent | 76f8eb6a1ca36cbdc705be7810f3445ee506462f (diff) |
Avoid warnings from perl for timeline types without name info.
-rwxr-xr-x | web-admin/index.cgi | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/web-admin/index.cgi b/web-admin/index.cgi index 2f3ec85e7..2a2cd445d 100755 --- a/web-admin/index.cgi +++ b/web-admin/index.cgi @@ -828,10 +828,11 @@ sub admin_timeline { print '<dt><b>', decode_utf8(strftime('%H:%M:%S', localtime($_))), ':</b></dt> <dd>'; foreach (@{$time{$_}}) { my $type = $_->{type}; - my $name_str = '; ' . sprintf(_("by %s"), ent($_->{name})) . " <" . ent($_->{email}) . ">, '" . ent($_->{title}) . "'"; if ($type eq 'problemCreated') { + my $name_str = '; ' . sprintf(_("by %s"), ent($_->{name})) . " <" . ent($_->{email}) . ">, '" . ent($_->{title}) . "'"; print sprintf(_("Problem %d created"), $_->{id}) . $name_str; } elsif ($type eq 'problemConfirmed') { + my $name_str = '; ' . sprintf(_("by %s"), ent($_->{name})) . " <" . ent($_->{email}) . ">, '" . ent($_->{title}) . "'"; $cobrand_data = get_cobrand_data_from_hash($cobrand, $_); my $url = Cobrand::base_url_for_emails($cobrand, $cobrand_data) . "/report/$_->{id}"; print sprintf(_("Problem %s confirmed"), "<a href='$url'>$_->{id}</a>") . $name_str; |