aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/templates/tag2tagadd.tpl.php2
-rw-r--r--www/tag2tagadd.php6
2 files changed, 6 insertions, 2 deletions
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']);
<form action="<?php echo $formaction; ?>" method="post">
-<p align=right" style="float:right">
+<p align="right" style="float:right">
<small style="text-align:right"><?php echo T_('Note: use "=" to make synonym two tags. e.g.: france=frenchcountry')?></small><br/>
<small style="text-align:right"><?php echo T_('Note: use ">" to include one tag in another. e.g.: europe>france>paris')?></small><br/>
</p>
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;