summaryrefslogtreecommitdiff
path: root/edit.php
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-09-17 12:31:53 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-09-17 12:31:53 +0000
commitbf02d85a46525bdd9df1d8c1ec3f2fa34ef74288 (patch)
tree48941f73977ffba8eceb7d265064ccf4f76a2ad0 /edit.php
parent14f617d641605ccb8512d8aa5de33b3972151263 (diff)
downloadsemanticscuttle-bf02d85a46525bdd9df1d8c1ec3f2fa34ef74288.tar.gz
semanticscuttle-bf02d85a46525bdd9df1d8c1ec3f2fa34ef74288.tar.bz2
fix bug #2834293: Patch for E_NOTICE when referer is missing
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@346 b3834d28-1941-0410-a4f8-b48e95affb8f
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);
}
?>