diff options
Diffstat (limited to 'lib/general.lib.php')
-rw-r--r-- | lib/general.lib.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/general.lib.php b/lib/general.lib.php index 03b8a4e6..6e38bf0e 100644 --- a/lib/general.lib.php +++ b/lib/general.lib.php @@ -844,6 +844,10 @@ function make_bool($string) { return '0'; } + if (strlen($string) < 1) { + return '0'; + } + return settype($string,"bool"); } // make_bool |