Skip to content

Commit 314fdab

Browse files
kareilaalierak
authored andcommitted
you guessed it: fix more undefined value warnings
Use of uninitialized value in substitution iterator at cgi-bin/LJ/Lang.pm line 617. Use of uninitialized value in subtraction (-) at cgi-bin/DW/Controller/Tools.pm line 342.
1 parent bb8a15a commit 314fdab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cgi-bin/DW/Controller/ChangeEmail.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ sub changeemail_handler {
193193
username => $u->display_username,
194194
email => $u->email_raw,
195195
sitename => $LJ::SITENAME,
196-
sitelink => $LJ::SITEROOT,
196+
siteroot => $LJ::SITEROOT,
197197
conflink => "$LJ::SITEROOT/confirm/$aa->{'aaid'}.$aa->{'authcode'}"
198198
}
199199
),

cgi-bin/DW/Controller/Tools.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ sub emailmanage_handler {
339339
: $lastdate_email;
340340

341341
# current address was set more, than 6 months ago?
342-
my $six_month_case = time() - str2time($lastdate) > 182 * 24 * 3600; # half year
342+
my $six_month_case = time() - ( str2time($lastdate) // 0 ) > 182 * 24 * 3600; # half year
343343

344344
my @deleted;
345345
if ( $r->did_post && $u->{'status'} eq 'A' ) {

0 commit comments

Comments
 (0)