From 390251ac43ca889a318369342b4663ef928349d8 Mon Sep 17 00:00:00 2001
From: Camil Staps
Date: Wed, 27 Jul 2016 21:06:48 +0200
Subject: Contact: use Model
---
include/contacts-new.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'include/contacts-new.php')
diff --git a/include/contacts-new.php b/include/contacts-new.php
index c75298c..b671be4 100644
--- a/include/contacts-new.php
+++ b/include/contacts-new.php
@@ -35,7 +35,7 @@ try {
$_REQUEST['country']
);
$response->success = true;
- $response->message = "Contact {$contact->getName()} has been succesfully created. Refresh the page.";
+ $response->message = "Contact {$contact->name} has been succesfully created. Refresh the page.";
} catch (PDOException $e) {
$response->http_response_code(500);
$response->success = false;
--
cgit v1.2.3