Ich erhalte folgende Fehlermeldungen:
Code:
[<!-- datum -->] [warn] [client <!-- ip -->] mod_fcgid: stderr: PHP Notice:  Undefined index: cPath in /docroot zum shop/configure.php on line 67
[<!-- datum -->] [warn] [client <!-- ip -->] mod_fcgid: stderr: PHP Notice:  Undefined index: cPath in /docroot zum shop/configure.php on line 70

Dafür verantwortlich dürften folgende Zeilen sein:

Code:
if (preg_match('/_/',$_GET['cPath'])) {
$catvalue = substr($_GET['cPath'],0,strpos($_GET['cPath'],"_")); 
} else {
$catvalue = $_GET['cPath'];
}
setcookie("ShopKategorie", $catvalue);
define('CAT_VALUE', $catvalue);
Ich hab mir jetzt gedacht, könnte das mit dem Abfragen des Vorhandenseins des Parameters umgehen:

Code:
if(isset($_GET['cPath'])) {
  if (preg_match('/_/',$_GET['cPath'])) {
$catvalue = substr($_GET['cPath'],0,strpos($_GET['cPath'],"_")); 
} else {
$catvalue = $_GET['cPath'];
} 

} else {
   $catvalue = ''; 
}

setcookie("ShopKategorie", $catvalue);
define('CAT_VALUE', $catvalue);
Frage:
Wäre das so richtig?
Und was genau speichert dieses cookie und ist es ohne Kategorie überhaupt notwendig?