summaryrefslogtreecommitdiff
path: root/edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'edit.php')
-rw-r--r--edit.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/edit.php b/edit.php
index 76a977c..005493d 100644
--- a/edit.php
+++ b/edit.php
@@ -112,7 +112,10 @@ if (!($row = $bookmarkservice->getBookmark(intval($bookmark), true))) {
$tplVars['formaction'] = createURL('edit', $bookmark);
$tplVars['btnsubmit'] = T_('Save Changes');
$tplVars['showdelete'] = true;
- $tplVars['referrer'] = $_SERVER['HTTP_REFERER'];
+ $tplVars['referrer'] = '';
+ if (isset($_SERVER['HTTP_REFERER'])) {
+ $tplVars['referrer'] = $_SERVER['HTTP_REFERER'];
+ }
$templateservice->loadTemplate('editbookmark.tpl', $tplVars);
}
?>