summaryrefslogtreecommitdiff
path: root/bookmarks.php
diff options
context:
space:
mode:
Diffstat (limited to 'bookmarks.php')
-rw-r--r--bookmarks.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/bookmarks.php b/bookmarks.php
index a5f384e..91d0999 100644
--- a/bookmarks.php
+++ b/bookmarks.php
@@ -207,7 +207,10 @@ if ($templatename == 'editbookmark.tpl') {
}
$title = T_('Add a Bookmark');
- $tplVars['referrer'] = $_SERVER['HTTP_REFERER'];
+ $tplVars['referrer'] = '';;
+ if (isset($_SERVER['HTTP_REFERER'])) {
+ $tplVars['referrer'] = $_SERVER['HTTP_REFERER'];
+ }
$tplVars['pagetitle'] = $title;
$tplVars['subtitle'] = $title;
$tplVars['btnsubmit'] = T_('Add Bookmark');