Index: trunk/kernel/include/cachecount.php =================================================================== diff -u -N -r13 -r748 --- trunk/kernel/include/cachecount.php (.../cachecount.php) (revision 13) +++ trunk/kernel/include/cachecount.php (.../cachecount.php) (revision 748) @@ -109,6 +109,7 @@ } if(!$found) { + $ListType=intval($ListType); $sql = "SELECT * FROM ".$this->SourceTable." WHERE ItemType=$ItemType AND ListType=$ListType AND ExtraId='$ExtraId' AND TodayOnly=$TodayOnly"; $res = $this->adodbConnection->Execute($sql); if($res && !$res->EOF)