Index: contrib/emvideo/providers/dailymotion.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/emfield/contrib/emvideo/providers/Attic/dailymotion.inc,v
retrieving revision 1.1.2.11
diff -u -r1.1.2.11 dailymotion.inc
--- contrib/emvideo/providers/dailymotion.inc	23 Jul 2009 19:21:44 -0000	1.1.2.11
+++ contrib/emvideo/providers/dailymotion.inc	23 Jul 2009 19:57:17 -0000
@@ -71,7 +71,10 @@
   }
   if (preg_match('@dailymotion\.com@i', $embed, $matches)) {
     if (preg_match('@/([^/_]+)_@i', $embed, $matches)) {
-      return $matches[1];
+      $id = array_pop($matches[1]);
+      if (!is_array($id) && $id != NULL) {
+        return $id;
+      }
     }
   }
   return array();
