aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/network.php4
-rw-r--r--include/socgraph.php5
2 files changed, 7 insertions, 2 deletions
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) {