From 770a45a126b8b865c20bc150db268faab26dd900 Mon Sep 17 00:00:00 2001 From: Victor De la Rocha Date: Fri, 14 Sep 2007 22:33:25 +0000 Subject: [PATCH] Deleted Notice: Undefined index: query. Added isset() before use var --- classes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/functions.php b/classes/functions.php index 160b270..b9030c8 100644 --- a/classes/functions.php +++ b/classes/functions.php @@ -216,8 +216,8 @@ if (!$f) { return false; } - - $q = "GET " . $data['path'] . "?" . $data['query'] . " HTTP/1.1\r\n"; + + $q = "GET " . $data['path'] . (isset($data['query'])?'?'.$data['query']:'') . " HTTP/1.1\r\n"; $q .= "Host: " . $data['host'] . "\r\n"; $q .= "Connection: close\r\n"; $q .= "Referer: http://www.gelatocms.com/\r\n\r\n";