Explorar o código

fix array to object for webservices

Bradford Condon %!s(int64=6) %!d(string=hai) anos
pai
achega
88c947f3db
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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));