From afbf73efcdbedef384adceaeed29d607b5a19d29 Mon Sep 17 00:00:00 2001
From: Kevin Chabowski <kevin@kch42.de>
Date: Thu, 4 Oct 2012 16:18:10 +0200
Subject: mute_runtime_errors should now work...

---
 stupid_template_engine.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'stupid_template_engine.php')

diff --git a/stupid_template_engine.php b/stupid_template_engine.php
index 81a7688..aadbb86 100644
--- a/stupid_template_engine.php
+++ b/stupid_template_engine.php
@@ -1122,7 +1122,8 @@ class STECore
 		}
 		catch(RuntimeError $e)
 		{
-			return "RuntimeError occurred on tag '$name': " . $e->getMessage();
+			if(!$this->mute_runtime_errors)
+				return "RuntimeError occurred on tag '$name': " . $e->getMessage();
 		}
 	}
 	
-- 
cgit v1.2.3-70-g09d2