- check if $_GET["categoryid"] is set before using it

This commit is contained in:
steinm 2011-03-24 07:15:56 +00:00
parent e4b475371b
commit aff1c950d9

View File

@ -67,7 +67,7 @@ UI::contentContainerStart();
$owner = $category->getOwner();
if ($owner->getID() != $user->getID()) continue;
if ($category->getID()==$_GET["categoryid"]) $selected=$count;
if (isset($_GET["categoryid"]) && $category->getID()==$_GET["categoryid"]) $selected=$count;
print "<option value=\"".$category->getID()."\">" . $category->getName();
$count++;
}