fix possible undefined variable in error-message, thx to Dessa

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2013-07-09 21:46:56 +02:00
parent d02c739640
commit 1870a88f6b

View File

@@ -39,6 +39,7 @@ function standard_error($errors = '', $replacer = '')
);
}
$link = '';
if (isset($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST']) !== false) {
$link = '<a href="'.$_SERVER['HTTP_REFERER'].'">'.$lng['panel']['back'].'</a>';
}