summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2012-06-06 17:32:26 +0200
committerKevin Chabowski <kevin@kch42.de>2012-06-06 17:32:26 +0200
commit7042a32d61399b8a30d27d293122c67212e0cb10 (patch)
treef9b76e0da0e9d46285b96f382ec803be9eb2ba92
parentf1dfd489ae835d131da19319e640a2e5f3b9aa1c (diff)
downloadste-7042a32d61399b8a30d27d293122c67212e0cb10.tar.gz
ste-7042a32d61399b8a30d27d293122c67212e0cb10.tar.bz2
ste-7042a32d61399b8a30d27d293122c67212e0cb10.zip
evalbool does not longer yield warnings on non-text inputs.
-rw-r--r--stupid_template_engine.php2
1 files changed, 1 insertions, 1 deletions
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 . "") != "";
}
}