From 746eef0d5ccb2b2b235bf2ad7844b1a71e44ed2f Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Sun, 8 Jul 2012 14:31:40 +0200 Subject: [PATCH] Format error response correctly. --- apps/contacts/import.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/contacts/import.php b/apps/contacts/import.php index 1a07781b9d0..3891a6d7422 100644 --- a/apps/contacts/import.php +++ b/apps/contacts/import.php @@ -108,7 +108,7 @@ if(count($parts) == 1){ $imported = 0; $failed = 0; if(!count($importready) > 0) { - OCP\JSON::error(array('message' => 'No contacts to import in .'.$_POST['file'].' Please check if the file is corrupted.')); + OCP\JSON::error(array('data' => (array('message' => 'No contacts to import in .'.$_POST['file'].' Please check if the file is corrupted.'))); exit(); } foreach($importready as $import){ -- 2.39.5