From 3e5414cf35f3781297490e058c6d366bca45748e Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 10 Sep 2013 19:06:06 -0700 Subject: provide detailed error to remote site for the myriad of things that can go wrong inside item_store(), !! this changes the return of item_store !! --- mod/item.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mod/item.php') diff --git a/mod/item.php b/mod/item.php index fd93d1dff..367a0c4be 100644 --- a/mod/item.php +++ b/mod/item.php @@ -689,7 +689,8 @@ function item_post(&$a) { $post_id = 0; - $post_id = item_store($datarray,$execflag); + $post = item_store($datarray,$execflag); + $post_id = $post['item_id']; if($post_id) { logger('mod_item: saved item ' . $post_id); -- cgit v1.2.3