From eb0134debd4c65ec664ca25e07b9f16edb839842 Mon Sep 17 00:00:00 2001 From: "Alan J. Pippin" Date: Thu, 17 Apr 2008 19:09:40 -0600 Subject: [PATCH] Added code to get rid of some undeclared/uninit warnings --- ItemAddEmbedVideo.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); -- 2.34.1