Skip to content

Commit

Permalink
strtotime(): Passing null to parameter #1. Fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
notrinos committed Aug 21, 2022
1 parent 5de765b commit 8c14c47
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions admin/users.php
Expand Up @@ -114,7 +114,11 @@ function can_process($new) {
alt_table_row_color($k);

$time_format = (user_date_format() == 0 ? 'h:i a' : 'H:i');
$last_visit_date = sql2date($myrow['last_visit_date']).' '.date($time_format, strtotime($myrow['last_visit_date']));

if(empty($myrow['last_visit_date']))
$last_visit_date = '';
else
$last_visit_date = sql2date($myrow['last_visit_date']).' '.date($time_format, strtotime($myrow['last_visit_date']));

/*The security_headings array is defined in config.php */
$not_me = strcasecmp($myrow['user_id'], $_SESSION['wa_current_user']->username);
Expand Down Expand Up @@ -196,4 +200,4 @@ function can_process($new) {
submit_add_or_update_center($selected_id == -1, '', 'both');

end_form();
end_page();
end_page();

0 comments on commit 8c14c47

Please sign in to comment.