aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-28 20:51:37 -0800
committerfriendica <info@friendica.com>2013-01-28 20:51:37 -0800
commit3cf3f7437ea4c25c7a7fdcf04bfcf72be2d32698 (patch)
tree7e64a861053f1b73aefc3961541fe921f7f58e0b /include/zot.php
parent95415bff69a6dba17d9aa3ff02707c94872e75e4 (diff)
downloadvolse-hubzilla-3cf3f7437ea4c25c7a7fdcf04bfcf72be2d32698.tar.gz
volse-hubzilla-3cf3f7437ea4c25c7a7fdcf04bfcf72be2d32698.tar.bz2
volse-hubzilla-3cf3f7437ea4c25c7a7fdcf04bfcf72be2d32698.zip
It's really not supposed to be quite this chatty on the network - ah that's why. Oops.
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php5
1 files changed, 5 insertions, 0 deletions
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)) {