Revision: 6
Author:   [email protected]
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;
        }
 }

Reply via email to