summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul 'flowerysong' Arthur <flowerysong00@yahoo.com>2010-06-12 22:35:56 +0000
committerPaul 'flowerysong' Arthur <flowerysong00@yahoo.com>2010-06-12 22:35:56 +0000
commit13629b3cf71db4b0c757f0d4a64b4f96711bd863 (patch)
tree003360bb38ab98bb0ca7f822d22e32b91ae08603
parent3b4e45208de9f780e820dcb2caff0bcf63fb0511 (diff)
downloadampache-13629b3cf71db4b0c757f0d4a64b4f96711bd863.tar.gz
ampache-13629b3cf71db4b0c757f0d4a64b4f96711bd863.tar.bz2
ampache-13629b3cf71db4b0c757f0d4a64b4f96711bd863.zip
$key wasn't defined in Error::add, I'm going to assume it was supposed to be $name.
-rw-r--r--lib/class/error.class.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/class/error.class.php b/lib/class/error.class.php
index 2ed4a034..31a0eb10 100644
--- a/lib/class/error.class.php
+++ b/lib/class/error.class.php
@@ -65,19 +65,19 @@ class Error {
if (!isset(Error::$errors[$name])) {
Error::$errors[$name] = $message;
Error::$state = 1;
- $_SESSION['errors'][$key] = $message;
+ $_SESSION['errors'][$name] = $message;
}
// They want us to clobber it
elseif ($clobber) {
Error::$state = 1;
Error::$errors[$name] = $message;
- $_SESSION['errors'][$key] = $message;
+ $_SESSION['errors'][$name] = $message;
}
// They want us to append the error, add a BR\n and then the message
else {
Error::$state = 1;
Error::$errors[$name] .= "<br />\n" . $message;
- $_SESSION['errors'][$key] .= "<br />\n" . $message;
+ $_SESSION['errors'][$name] .= "<br />\n" . $message;
}
} // add