Added code to get rid of some undeclared/uninit warnings
authorAlan J. Pippin <ajp@server.pippins.net>
Fri, 18 Apr 2008 01:09:40 +0000 (19:09 -0600)
committerAlan J. Pippin <ajp@pippins.net>
Fri, 18 Apr 2008 01:09:40 +0000 (19:09 -0600)
ItemAddEmbedVideo.inc

index 69ee24dbd4ef0740c728f01976db142b6f1e53b9..7103c3715ecc234aced11a029baa43ac49b8ac4e 100644 (file)
@@ -34,7 +34,7 @@ class ItemAddEmbedVideo extends ItemAddPlugin {
    * @see ItemAddPlugin::handleRequest
    */
  function handleRequest($form, &$item) {
-   global $gallery;
+   global $gallery, $url;
     
    $status = $error = array();
    
@@ -1213,7 +1213,8 @@ class ItemAddEmbedVideo extends ItemAddPlugin {
      global $gallery;
      
      $requestMethod='GET';
-
+     $requestBody='';
+     
      /* Convert illegal characters */
      $url = str_replace(' ', '%20', $url);