diff options
Diffstat (limited to 'include/zot.php')
-rw-r--r-- | include/zot.php | 5 |
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)) { |