]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
fix E_NOTICE in tag2tagadd and make tag2tagadd xhtml valid
authorChristian Weiske <cweiske@cweiske.de>
Sat, 9 Oct 2010 11:06:09 +0000 (13:06 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Sat, 9 Oct 2010 11:06:09 +0000 (13:06 +0200)
data/templates/tag2tagadd.tpl.php
www/tag2tagadd.php

index fcbd3728df12f61fc7b94d5abaa84f16552f91c9..9482007a8611e1d139498351617fab3f7cf40cbd 100644 (file)
@@ -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>
index cf8a639f865dcd4e8d056411afc5be5605a2bd8e..d6604518e27ed9dc3c78a35839077098f81b4b78 100644 (file)
@@ -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;