mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-04 10:19:25 +02:00
Fix Scrutinizer reported errors
This commit is contained in:
parent
4a2d7b97f6
commit
80cd08ed04
29 changed files with 117 additions and 92 deletions
|
@ -64,18 +64,18 @@ class Error
|
|||
// Make sure its set first
|
||||
if (!isset(Error::$errors[$name])) {
|
||||
Error::$errors[$name] = $message;
|
||||
Error::$state = 1;
|
||||
Error::$state = true;
|
||||
$_SESSION['errors'][$name] = $message;
|
||||
}
|
||||
// They want us to clobber it
|
||||
elseif ($clobber) {
|
||||
Error::$state = 1;
|
||||
Error::$state = true;
|
||||
Error::$errors[$name] = $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::$state = true;
|
||||
Error::$errors[$name] .= "<br />\n" . $message;
|
||||
$_SESSION['errors'][$name] .= "<br />\n" . $message;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue