diff options
author | Brice Maron <brice@bmaron.net> | 2011-11-06 16:48:26 +0100 |
---|---|---|
committer | Brice Maron <brice@bmaron.net> | 2011-11-06 16:48:26 +0100 |
commit | 3940ca3df1a87a242b70f68b5f89f92cf3251526 (patch) | |
tree | f02c664318e1e91d0e119da49841da36eb832a5f /lib/ocsclient.php | |
parent | cc35cb74e191040169100021c906cc8267b3508e (diff) | |
download | nextcloud-server-3940ca3df1a87a242b70f68b5f89f92cf3251526.tar.gz nextcloud-server-3940ca3df1a87a242b70f68b5f89f92cf3251526.zip |
Display correctly the error message when nothing is retrieved from OCS servers
Diffstat (limited to 'lib/ocsclient.php')
-rw-r--r-- | lib/ocsclient.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ocsclient.php b/lib/ocsclient.php index 654c5e0527b..072fd236fee 100644 --- a/lib/ocsclient.php +++ b/lib/ocsclient.php @@ -108,6 +108,7 @@ class OC_OCSClient{ $xml=@file_get_contents($url); if($xml==FALSE){ + OC_Log::write('core','Unable to parse OCS content',OC_Log::FATAL); return NULL; } $data=simplexml_load_string($xml); @@ -143,6 +144,7 @@ class OC_OCSClient{ $kbe=array(); $xml=@file_get_contents($url); if($xml==FALSE){ + OC_Log::write('core','Unable to parse knowledgebase content',OC_Log::FATAL); return NULL; } $data=simplexml_load_string($xml); |