diff options
-rw-r--r-- | stupid_template_engine.php | 3 |
1 files changed, 2 insertions, 1 deletions
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(); } } |