From bf02d85a46525bdd9df1d8c1ec3f2fa34ef74288 Mon Sep 17 00:00:00 2001 From: cweiske Date: Thu, 17 Sep 2009 12:31:53 +0000 Subject: 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 --- bookmarks.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bookmarks.php') 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'); -- cgit v1.2.3-54-g00ecf