From 3cf3f7437ea4c25c7a7fdcf04bfcf72be2d32698 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 28 Jan 2013 20:51:37 -0800 Subject: It's really not supposed to be quite this chatty on the network - ah that's why. Oops. --- include/zot.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/zot.php') diff --git a/include/zot.php b/include/zot.php index 8e3f0303e..a1169ea3b 100644 --- a/include/zot.php +++ b/include/zot.php @@ -730,6 +730,11 @@ function zot_import($arr) { $data = json_decode($arr['body'],true); + if(! $data) { + logger('zot_import: empty body'); + return array(); + } + // logger('zot_import: data1: ' . print_r($data,true)); if(array_key_exists('iv',$data)) { -- cgit v1.2.3