瀏覽代碼

fix array to object for webservices

Bradford Condon 6 年之前
父節點
當前提交
88c947f3db
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tripal_ws/api/tripal_ws.api.inc

+ 1 - 1
tripal_ws/api/tripal_ws.api.inc

@@ -254,7 +254,7 @@ function tripal_get_remote_content($site_id, $path = '', $query = '') {
   // If the data object has an error then this is some sort of
   // connection error (not a Tripal web servcies error).
   if (property_exists($data, 'error')) {
-    $error = '</pre>' . print_r($data['error'], TRUE) . '</pre>';
+    $error = '</pre>' . print_r($data->error, TRUE) . '</pre>';
     tripal_report_error('tripal_ws', TRIPAL_ERROR,
         'Remote web services reports the following error: !error. Using URL: !url',
         array('!error' => $error, '!url' => $ws_url));