Browse Source

PHP error

when I save settings I get "Undefined variable: '$name' in /var/www/html/settings.php on line 26" message
I think that the correct variable name shall be $key
J.K.Umeboshi 2 years ago
parent
commit
4271c9f635
1 changed files with 1 additions and 1 deletions
  1. 1 1
      settings.php

+ 1 - 1
settings.php

@@ -23,7 +23,7 @@
                         if (!empty($value))
                         {
                             setcookie($key, $value, time() + (86400 * 90), '/');
-                            $_COOKIE[$name] = $value;
+                            $_COOKIE[$key] = $value;
                         }
                     }
                 }