diff --git a/database/DataBaseConnector.php b/database/DataBaseConnector.php index 87878ff..66960a4 100644 --- a/database/DataBaseConnector.php +++ b/database/DataBaseConnector.php @@ -758,7 +758,7 @@ na.id as networkAgentId, if($agent) { $idag=$agent['agentId']; $datetime = $this->getCurrentTimeByUserID($agent['code_country']); - $q = mysqli_query($this->con, "INSERT INTO demandeCredits(network_agent_id,montant,status,date_creation) VALUES('$idag','$montant','0',$datetime)"); + $q = mysqli_query($this->con, "INSERT INTO demandeCredits(network_agent_id,montant,status,date_creation) VALUES('$idag','$montant','0','$datetime')"); $id = mysqli_insert_id($this->con); if ($q) { return ['success' => 1, "agent" => $agent, "id" => $id, diff --git a/static/en/message.json b/static/en/message.json index 6cff2f0..4708da9 100644 --- a/static/en/message.json +++ b/static/en/message.json @@ -30,6 +30,7 @@ "MESSAGE_TREAT":"Your credit application has been processed,please check in the application \n \n Sincerely, The iLinkWorld Team", "MESSAGE_ACTIVE_ACCOUNT":"Hi %s, \n \nYour %s account has just been created. \nYour ID:%s \n\nYour verification code:%s \n \nService, \niLbinkWorld Team.", "MESSAGE_SUCCESS_RECOVERY_PASSWORD":"The password has been changed and a message has been sent to you", - "NOTIFICATION_CREDIT_DEMAND_TEXT_SUCCESS":"%s sent you a credit request for %s %s." + "NOTIFICATION_CREDIT_DEMAND_TEXT_SUCCESS":"%s sent you a credit request for %s %s.", + "UNABLE_TO_SEND_DEMAND" : "An error occurred while sending the request" } diff --git a/static/fr/message.json b/static/fr/message.json index ff0d962..7d71eef 100644 --- a/static/fr/message.json +++ b/static/fr/message.json @@ -30,5 +30,6 @@ "MESSAGE_TREAT":"Votre demande de crédit vient d'être traité,veuillez consulter dans l'application \n\n Cordialement,L'equipe iLnkWorld.", "MESSAGE_ACTIVE_ACCOUNT":"Salut %s, \n \nvotre compte %s a été activé. \nvotre ID:%s \n\nvotre code de activation:%s \n \nCordialement, \nEquipe iLinkWorld .", "MESSAGE_SUCCESS_RECOVERY_PASSWORD": "Le mot de passe a été modifié et un message vous a été envoyé à ", - "NOTIFICATION_CREDIT_DEMAND_TEXT_SUCCESS":"%s vous a envoyé une demande de crédit de %s %s." + "NOTIFICATION_CREDIT_DEMAND_TEXT_SUCCESS":"%s vous a envoyé une demande de crédit de %s %s.", + "UNABLE_TO_SEND_DEMAND" : "Une erreur est survenue lors de l'envoi de la demande" }