diff --git a/Source/API/script/Gateway/GatewayForm.php b/Source/API/script/Gateway/GatewayForm.php index 06c1d55..1c63811 100644 --- a/Source/API/script/Gateway/GatewayForm.php +++ b/Source/API/script/Gateway/GatewayForm.php @@ -22,7 +22,7 @@ class GatewayForm public function insertForm(string $title, string $description): void { - if(empty($this->getForm())) + if(!empty($this->getForm())) { $query = "INSERT INTO Form(title, description) VALUES(:title, :description)"; $this->connection->executeQuery($query, array(