From: Christian Weiske Date: Sat, 9 Oct 2010 11:06:09 +0000 (+0200) Subject: fix E_NOTICE in tag2tagadd and make tag2tagadd xhtml valid X-Git-Tag: v0.98.0~157 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=b4f9d3b12644b5b5abd0b7da8e8c37d2659a2b4b;p=semanticscuttle.git fix E_NOTICE in tag2tagadd and make tag2tagadd xhtml valid --- diff --git a/data/templates/tag2tagadd.tpl.php b/data/templates/tag2tagadd.tpl.php index fcbd372..9482007 100644 --- a/data/templates/tag2tagadd.tpl.php +++ b/data/templates/tag2tagadd.tpl.php @@ -4,7 +4,7 @@ $this->includeTemplate($GLOBALS['top_include']);
-

+


" to include one tag in another. e.g.: europe>france>paris')?>

diff --git a/www/tag2tagadd.php b/www/tag2tagadd.php index cf8a639..d660451 100644 --- a/www/tag2tagadd.php +++ b/www/tag2tagadd.php @@ -40,7 +40,11 @@ if(!$userservice->isLoggedOn()) { } /* Managing path info */ -list ($url, $tag1) = explode('/', $_SERVER['PATH_INFO']); +if (isset($_SERVER['PATH_INFO'])) { + list ($url, $tag1) = explode('/', $_SERVER['PATH_INFO']); +} else { + $url = $tag1 = null; +} if (POST_CONFIRM != '') { $tag1 = POST_TAG1;