You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openmeetings.apache.org by op...@codespot.com on 2014/06/19 12:14:36 UTC

[openmeetings-api-plugin] r6 committed - Correct lists are being returned from Recording related API methods

Revision: 6
Author:   solomax666@gmail.com
Date:     Thu Jun 19 10:14:14 2014 UTC
Log:      Correct lists are being returned from Recording related API  
methods
http://code.google.com/a/apache-extras.org/p/openmeetings-api-plugin/source/detail?r=6

Modified:
  /trunk/src/main/scripts/openmeetings_gateway.php

=======================================
--- /trunk/src/main/scripts/openmeetings_gateway.php	Fri Jan 31 16:53:32  
2014 UTC
+++ /trunk/src/main/scripts/openmeetings_gateway.php	Thu Jun 19 10:14:14  
2014 UTC
@@ -293,7 +293,7 @@

  		$result = $restService->call($url, "return");

-		return $result;
+		return $result && !is_array(reset($result)) ? array($result) : $result;
  	}

  	/**
@@ -307,7 +307,7 @@

  		$result = $restService->call($url, "return");

-		return $result;
+		return $result && !is_array(reset($result)) ? array($result) : $result;
  	}
  }