diff options
author | nikrou <nikrou@piwigo.org> | 2010-06-23 18:35:21 +0000 |
---|---|---|
committer | nikrou <nikrou@piwigo.org> | 2010-06-23 18:35:21 +0000 |
commit | 24d68bed062ae2c953ee4c6defc6145de2d11ac6 (patch) | |
tree | f1bc194b7a80968eb1c2ed21482b46378148dba6 /include/dblayer | |
parent | d28c348908e281f4bb7ed61dd0854e9bced5d4d7 (diff) |
Fix bug 1743 : comment form is not visible because of boolean management
merge from trunk
git-svn-id: http://piwigo.org/svn/branches/2.1@6592 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/dblayer')
-rw-r--r-- | include/dblayer/functions_pgsql.inc.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/dblayer/functions_pgsql.inc.php b/include/dblayer/functions_pgsql.inc.php index 3c68f7816..a9f033fc3 100644 --- a/include/dblayer/functions_pgsql.inc.php +++ b/include/dblayer/functions_pgsql.inc.php @@ -512,6 +512,10 @@ function boolean_to_string($var) { return $var ? 'true' : 'false'; } + elseif ($var=='t' || $var=='f') + { + return ($var=='t') ? 'true' : 'false'; + } else { return $var; |