From: konrad Date: Sun, 30 Mar 2008 14:07:14 +0000 (+0000) Subject: make sure int is int X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=d4cee3177481640dcfc6e0f8baab8cdfeef8a45f;p=web%2Fkonrad%2Fsmoke.git make sure int is int git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@148 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33 --- diff --git a/www/inc/db/db.php b/www/inc/db/db.php index cb3886e..67f51fd 100644 --- a/www/inc/db/db.php +++ b/www/inc/db/db.php @@ -224,7 +224,7 @@ abstract class DbEngine public function escapeInt($i) { if($i === false)return "NULL"; - return $i + 0; + return round($i + 0); } /**escapes strings; the default uses addslashes and encloses the value in ''*/