fixed warning when no referer available

This commit is contained in:
skodak
2006-07-31 10:04:18 +00:00
parent a45c1d139a
commit 8860ceb4d2
+5 -1
View File
@@ -372,7 +372,11 @@
} else if (!empty($forum)) {
/// User is starting a new discussion in a forum
$SESSION->fromurl = $_SERVER["HTTP_REFERER"];
if (!empty($_SERVER["HTTP_REFERER"])) {
$SESSION->fromurl = $_SERVER["HTTP_REFERER"];
} else {
$SESSION->fromurl = '';
}
if (! $forum = get_record("forum", "id", $forum)) {
error("The forum number was incorrect ($forum)");