From 7042a32d61399b8a30d27d293122c67212e0cb10 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Wed, 6 Jun 2012 17:32:26 +0200 Subject: evalbool does not longer yield warnings on non-text inputs. --- stupid_template_engine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stupid_template_engine.php b/stupid_template_engine.php index a8eba06..8e5beb5 100644 --- a/stupid_template_engine.php +++ b/stupid_template_engine.php @@ -1345,7 +1345,7 @@ class STECore */ public function evalbool($txt) { - return trim($txt) != ""; + return trim($txt . "") != ""; } } -- cgit v1.2.3-54-g00ecf