Skip to content

Commit

Permalink
PHP 8 deprecation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
craigk5n committed Aug 31, 2024
1 parent 22e7e25 commit c6f266e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion includes/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ function user_load_variables ( $login, $prefix ) {
$GLOBALS[$prefix . 'lastname'] = $row[1];
$GLOBALS[$prefix . 'is_admin'] = $row[2];
$GLOBALS[$prefix . 'email'] = empty ( $row[3] ) ? '' : $row[3];
if ( strlen ( $row[0] ) && strlen ( $row[1] ) )
if ( strlen($row[0] ?? '') && strlen($row[1] ?? '') )
$GLOBALS[$prefix . 'fullname'] = "$row[0] $row[1]";
else
$GLOBALS[$prefix . 'fullname'] = $login;
Expand Down
1 change: 1 addition & 0 deletions includes/views.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @license https://gnu.org/licenses/old-licenses/gpl-2.0.html GNU GPL
* @package WebCalendar
*/
require_once 'includes/init.php';

/**
* Initialize view variables and check permissions.
Expand Down

0 comments on commit c6f266e

Please sign in to comment.