Skip to content

Commit 98b5589

Browse files
authored
Ensure that attribute value is a string and not null (#884)
1 parent 8bb016d commit 98b5589

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public_html/lists/admin/inc/userlib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ function UserAttributeValue($user = 0, $attribute = 0)
463463
$res = Sql_Query(sprintf('select value from %s where
464464
userid = %d and attributeid = %d', $user_att_table, $user, $attribute));
465465
$row = Sql_Fetch_row($res);
466-
$value = $row ? $row[0] : '';
466+
$value = $row ? (string) $row[0] : '';
467467
}
468468

469469
return stripslashes($value);

0 commit comments

Comments
 (0)