From b7942691e0c86b7e9092913b48a3a79108998066 Mon Sep 17 00:00:00 2001 From: SecretR Date: Wed, 10 Dec 2014 15:06:46 +0200 Subject: [PATCH] Render mode can be disabled, bad checks removed --- e107_handlers/application.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/e107_handlers/application.php b/e107_handlers/application.php index 71a5de2e6..1834c6191 100644 --- a/e107_handlers/application.php +++ b/e107_handlers/application.php @@ -3918,22 +3918,19 @@ class eResponse /** * * @param string $render_mod - * @param string $ns + * @param mixed $ns * @return eResponse */ function setRenderMod($render_mod, $ns = 'default') { - if(!is_string($ns) || empty($ns)) - { - return $this; - } - $this->_render_mod[$ns] = (string) $render_mod; + $this->_render_mod[$ns] = $render_mod; return $this; } /** * Retrieve render mod - * @param string $ns + * @param mixed $ns + * @return mixed */ function getRenderMod($ns = 'default') {