Skip to content

Commit

Permalink
Merge branch 'craigk5n:master' into pretty
Browse files Browse the repository at this point in the history
  • Loading branch information
bbannon authored Aug 31, 2024
2 parents 5ee0079 + c6f266e commit 884832f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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 Expand Up @@ -490,7 +490,7 @@ function user_get_users ( $publicOnly=false ) {
"ORDER BY $order1 cal_login" );
if ( $res ) {
while ( $row = dbi_fetch_row ( $res ) ) {
if ( strlen ( $row[1] ) && strlen ( $row[2] ) )
if ( strlen($row[1] ?? '') && strlen($row[2] ?? '') )
$fullname = "$row[2] $row[1]";
else
$fullname = $row[0];
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 884832f

Please sign in to comment.