diff options
author | Kevin Chabowski <kevin@kch42.de> | 2012-06-06 17:32:26 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2012-06-06 17:32:26 +0200 |
commit | 7042a32d61399b8a30d27d293122c67212e0cb10 (patch) | |
tree | f9b76e0da0e9d46285b96f382ec803be9eb2ba92 | |
parent | f1dfd489ae835d131da19319e640a2e5f3b9aa1c (diff) | |
download | ste-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.php | 2 |
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 . "") != ""; } } |