Index: includes/ooyala.api.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ooyala/includes/ooyala.api.inc,v
retrieving revision 1.8
diff -u -r1.8 ooyala.api.inc
--- includes/ooyala.api.inc	16 Dec 2010 17:36:14 -0000	1.8
+++ includes/ooyala.api.inc	24 Feb 2011 20:49:49 -0000
@@ -50,8 +50,9 @@
   static $online;
   if (!isset($online)) {
     $response = drupal_http_request("http://api.ooyala.com/partner/query");
-    $online = $response->code == 200;
-  }
+    // Ooyala will return response code 400 if a pcode is not provded, but all
+    // we're interested in is the fact that we got a response at all.
+    $online = $response->code == 400 || $response->code == 200;  }
   return $online;
 }
 
