diff options
author | Ludovic Arnaud <ludovic_arnaud@users.sourceforge.net> | 2002-09-19 01:11:32 +0000 |
---|---|---|
committer | Ludovic Arnaud <ludovic_arnaud@users.sourceforge.net> | 2002-09-19 01:11:32 +0000 |
commit | e1e52497fa6ce9e5d1d496c8c1af3b3270d465b8 (patch) | |
tree | ee8766fffd58713d8f09f0d42f40f341311c130c /phpBB/db/mysql.php | |
parent | 13307c1360721ee1892ae5eb1e7d9d27ec6c3c76 (diff) | |
download | forums-e1e52497fa6ce9e5d1d496c8c1af3b3270d465b8.tar forums-e1e52497fa6ce9e5d1d496c8c1af3b3270d465b8.tar.gz forums-e1e52497fa6ce9e5d1d496c8c1af3b3270d465b8.tar.bz2 forums-e1e52497fa6ce9e5d1d496c8c1af3b3270d465b8.tar.xz forums-e1e52497fa6ce9e5d1d496c8c1af3b3270d465b8.zip |
Preimplementation of smilies order, "smilies" changed into "emoticons" as per Bart comment and sql_query_array() fixed to allow FALSE values
git-svn-id: file:///svn/phpbb/trunk@2893 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/db/mysql.php')
-rw-r--r-- | phpBB/db/mysql.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/db/mysql.php b/phpBB/db/mysql.php index 1fafc51152..6a25ea9397 100644 --- a/phpBB/db/mysql.php +++ b/phpBB/db/mysql.php @@ -190,7 +190,7 @@ class sql_db } else { - $values[] = $var; + $values[] = (is_bool($var)) ? intval($var) : $var; } } @@ -211,7 +211,7 @@ class sql_db } else { - $values[] = "$key = $var"; + $values[] = (is_bool($var)) ? "$key = " . intval($var) : "$key = $var"; } } |