From: Alan J. Pippin <ajp@server.pippins.net>
Date: Fri, 18 Apr 2008 01:09:40 +0000 (-0600)
Subject: Added code to get rid of some undeclared/uninit warnings
X-Git-Tag: 1_1_1~9
X-Git-Url: http://git.pippins.net/%7Bdelete%7D?a=commitdiff_plain;h=eb0134debd4c65ec664ca25e07b9f16edb839842;p=embedvideo%2F.git

Added code to get rid of some undeclared/uninit warnings
---

diff --git a/ItemAddEmbedVideo.inc b/ItemAddEmbedVideo.inc
index 69ee24d..7103c37 100644
--- a/ItemAddEmbedVideo.inc
+++ b/ItemAddEmbedVideo.inc
@@ -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);