From 235b0335608439b98d74a205a380d0f77baf6b4f Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 24 Mar 2014 19:01:20 -0700 Subject: that should fix it. --- include/network.php | 4 ++-- include/socgraph.php | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/network.php b/include/network.php index 8e781272a..14771d88f 100644 --- a/include/network.php +++ b/include/network.php @@ -47,7 +47,7 @@ function z_fetch_url($url, $binary = false, $redirects = 0, $opts = array()) { if(! $ciphers) $ciphers = 'ALL:!eNULL'; -// @curl_setopt($ch, CURLOPT_SSL_CIPHER_LIST, $ciphers); + @curl_setopt($ch, CURLOPT_SSL_CIPHER_LIST, $ciphers); if (x($opts,'accept_content')){ @curl_setopt($ch,CURLOPT_HTTPHEADER, array ( @@ -155,7 +155,7 @@ function z_post_url($url,$params, $redirects = 0, $opts = array()) { if(! $ciphers) $ciphers = 'ALL:!eNULL'; -// @curl_setopt($ch, CURLOPT_SSL_CIPHER_LIST, Z_CURL_CIPHERS); + @curl_setopt($ch, CURLOPT_SSL_CIPHER_LIST, $ciphers); if (x($opts,'accept_content')){ diff --git a/include/socgraph.php b/include/socgraph.php index 10d52da66..65e23f9df 100644 --- a/include/socgraph.php +++ b/include/socgraph.php @@ -62,6 +62,11 @@ function poco_load($xchan = '',$url = null) { $j = json_decode($s['body'],true); + if(! $j) { + logger('poco_load: unable to json_decode returned data.'); + return; + } + logger('poco_load: ' . print_r($j,true),LOGGER_DATA); if($xchan) { -- cgit v1.2.3