silence warning about non array diaspora_meta but report it in the logs so we can find out what it actually is and why.
This commit is contained in:
parent
15b6e8faa4
commit
24ec104819
@ -1282,10 +1282,12 @@ function encode_item($item,$mirror = false) {
|
||||
if($item['diaspora_meta']) {
|
||||
$z = json_decode($item['diaspora_meta'],true);
|
||||
if($z) {
|
||||
if(array_key_exists('iv',$z))
|
||||
if(is_array($z) && array_key_exists('iv',$z))
|
||||
$x['diaspora_signature'] = crypto_unencapsulate($z,$key);
|
||||
else
|
||||
$x['diaspora_signature'] = $z;
|
||||
if(! is_array($z))
|
||||
logger('encode_item: diaspora meta is not an array: ' . print_r($z,true));
|
||||
}
|
||||
}
|
||||
logger('encode_item: ' . print_r($x,true), LOGGER_DATA);
|
||||
|
Reference in New Issue
Block a user