From 67743359a181c47b8ad8c0199be80b04639a6600 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 15 Sep 2007 21:04:33 +0000 Subject: [PATCH] elofgren: Add needed isset($_GETshowtemplate?) to SSViewer_FromString::process() to prevent errors when sending a newsletter draft. (merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41937 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/SSViewer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/SSViewer.php b/core/SSViewer.php index ccd73175f..12efd9eb4 100644 --- a/core/SSViewer.php +++ b/core/SSViewer.php @@ -340,7 +340,7 @@ class SSViewer_FromString extends SSViewer { fwrite($fh, $template); fclose($fh); - if(isset($_GET['showtemplate'])) { + if(isset($_GET['showtemplate']) && $_GET['showtemplate']) { $lines = file($tmpFile); echo "

Template: $tmpFile

"; echo "
";