X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=rt%2Fshare%2Fhtml%2FPrefs%2FCalendar.html;h=af20acd0ca22ee7526aa7916c03042a8f60d9d72;hb=58c47a18e6a3cff2fe4032c08f74c922966f3f40;hp=b508d103b01f049b7071737010623864cb277a4b;hpb=fec244eb00508517cd3313f6cf55973c2d2e99cf;p=freeside.git diff --git a/rt/share/html/Prefs/Calendar.html b/rt/share/html/Prefs/Calendar.html index b508d103b..af20acd0c 100644 --- a/rt/share/html/Prefs/Calendar.html +++ b/rt/share/html/Prefs/Calendar.html @@ -92,7 +92,7 @@ href="<%$RT::WebPath . '/Search/Build.html'%>">the Query Builder <%INIT> -use Digest::SHA1; +use Digest::SHA; use RT::SavedSearches; my $title = loc("Calendar Prefs"); @@ -106,12 +106,12 @@ my $object; if ($HiddenField && $HiddenField eq 'Private') { $object = $session{CurrentUser}->UserObj; -} elsif ($AllowSearch and $HiddenField my ($SearchId) = $HiddenField =~ m/SavedSearch\-(\d+)/) { +} elsif ($AllowSearch and $HiddenField and my ($SearchId) = $HiddenField =~ m/SavedSearch\-(\d+)/) { $object = $session{CurrentUser}->Attributes->WithId($SearchId); } if (defined $ChangeURL) { - my @args = $object->SetAttribute(Name => 'ICalURL', Content => Digest::SHA1::sha1_base64(time)); + my @args = $object->SetAttribute(Name => 'ICalURL', Content => Digest::SHA::sha1_base64(time)); } elsif (defined $ResetURL) { my @args = $object->DeleteAttribute('ICalURL'); }