Skip to content

Commit

Permalink
Fix #20: PHP 8.x - Uncaught Error & Uncaught TypeError (funcs.php)
Browse files Browse the repository at this point in the history
Co-authored-by: lck-git
  • Loading branch information
cmb69 committed Jan 9, 2023
1 parent e6811d9 commit ff30351
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions funcs.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function memberpages_ProcessList()
list($day,$month,$year) = explode('.',$expires[$key]);
} else $day = $month = $year = '';

$member[$key]['expires'] = mktime(0,0,0,$month,$day,$year);
$member[$key]['expires'] = mktime(0,0,0,(int)$month,(int)$day,(int)$year);
}


Expand Down Expand Up @@ -312,9 +312,9 @@ function memberpages_NewPW()
$newpassword = join("", $tmp);
$newpassword = preg_replace_callback(
'/[a-z|äöü]/i',
create_function('$m',
'return rand(0,1) ? $m[0] ^ str_pad("", strlen($m[0]), " ") : $m[0];
'),
function ($m) {
return rand(0,1) ? $m[0] ^ str_pad("", strlen($m[0]), " ") : $m[0];
},
$newpassword
);
}
Expand Down

0 comments on commit ff30351

Please sign in to comment.