From cb93a9925be700e5e1b0314f6cf66b19e7da5a34 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Mon, 11 May 2015 17:42:06 +0200 Subject: adds a simple publish status UI to show errors --- lib/helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/helpers.php') diff --git a/lib/helpers.php b/lib/helpers.php index 073d1e2..4f6b4c1 100644 --- a/lib/helpers.php +++ b/lib/helpers.php @@ -100,7 +100,7 @@ function micropub_post($endpoint, $params, $access_token) { $post = http_build_query(array_merge(array( 'h' => 'entry' ), $params)); - $post = preg_replace('/%5B[0-9]+%5D/', '%5B%5D', $post); + $post = preg_replace('/%5B[0-9]+%5D/', '%5B%5D', $post); // change [0] to [] curl_setopt($ch, CURLOPT_POSTFIELDS, $post); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HEADER, true); -- cgit v1.2.3