From ffdfba742d217b0ef3570b2befb1b2c814c39da3 Mon Sep 17 00:00:00 2001 From: Pierre Date: Sat, 5 May 2018 11:26:06 +0200 Subject: [PATCH] Fix issue --- classes/components/UserComponent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/components/UserComponent.php b/classes/components/UserComponent.php index 49b7e3b..4ce7053 100644 --- a/classes/components/UserComponent.php +++ b/classes/components/UserComponent.php @@ -422,7 +422,7 @@ class UserComponent { $user->set_friendListPublic($entry['liste_amis_publique'] == 1); $user->set_personnalWebsite($entry['site_web']); - $user->set_publicNote($entry['public_note']); + $user->set_publicNote($entry['public_note'] == null ? "" : $entry['public_note']); $user->set_disallowComments($entry['bloquecommentaire'] == 1); $user->set_allowPostFromFriends($entry['autoriser_post_amis'] == 1); $user->set_creation_time(strtotime($entry['date_creation']));