unified error msg variable

This commit is contained in:
Serghey Rodin 2013-11-02 16:43:40 +02:00
commit 849d536993
7 changed files with 36 additions and 35 deletions

View file

@ -14,7 +14,7 @@ if ($_SESSION['user'] == 'admin') {
if ($return_var != 0) {
$error = implode('<br>', $output);
if (empty($error)) $error = 'Error: '.$v_pkg.' update failed';
$_SESSION['error_upd'] = $error;
$_SESSION['error_msg'] = $error;
}
unset($output);
}