From b3d1f84e12aa34762e42b456ba0b0f187edf9f59 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 4 Aug 2018 09:06:18 +0200 Subject: [PATCH] Fix issue --- classes/components/SettingsComponent.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/classes/components/SettingsComponent.php b/classes/components/SettingsComponent.php index 2415333..e023ece 100644 --- a/classes/components/SettingsComponent.php +++ b/classes/components/SettingsComponent.php @@ -228,10 +228,10 @@ class SettingsComponents { $obj = new SecuritySettings(); $obj->set_id($entry['ID']); - $obj->set_security_question_1($entry["question1"]); - $obj->set_security_answer_1($entry["reponse1"]); - $obj->set_security_question_2($entry["question2"]); - $obj->set_security_answer_2($entry["reponse2"]); + if($entry["question1"] != null) $obj->set_security_question_1($entry["question1"]); + if($entry["reponse1"] != null) $obj->set_security_answer_1($entry["reponse1"]); + if($entry["question2"] != null) $obj->set_security_question_2($entry["question2"]); + if($entry["reponse2"] != null) $obj->set_security_answer_2($entry["reponse2"]); return $obj;