aboutsummaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2010-10-09 13:06:09 +0200
committerChristian Weiske <cweiske@cweiske.de>2010-10-09 13:06:09 +0200
commitb4f9d3b12644b5b5abd0b7da8e8c37d2659a2b4b (patch)
tree5e0a9688fe2c9af3f282a9cd75d1ac19df20065a /www
parent6bf4e76495b03ccec29fb4d9262ac871dd10a221 (diff)
downloadsemanticscuttle-b4f9d3b12644b5b5abd0b7da8e8c37d2659a2b4b.tar.gz
semanticscuttle-b4f9d3b12644b5b5abd0b7da8e8c37d2659a2b4b.tar.bz2
fix E_NOTICE in tag2tagadd and make tag2tagadd xhtml valid
Diffstat (limited to 'www')
-rw-r--r--www/tag2tagadd.php6
1 files changed, 5 insertions, 1 deletions
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;