Index: branches/5.3.x/core/units/helpers/rating_helper.php =================================================================== diff -u -N -r15698 -r15928 --- branches/5.3.x/core/units/helpers/rating_helper.php (.../rating_helper.php) (revision 15698) +++ branches/5.3.x/core/units/helpers/rating_helper.php (.../rating_helper.php) (revision 15928) @@ -1,6 +1,6 @@ $object->GetID(), 'RatingValue' => $rating, 'IPAddress' => $this->Application->getClientIp(), - 'CreatedOn' => adodb_mktime(), + 'CreatedOn' => time(), ); $this->Conn->doInsert($fields_hash, TABLE_PREFIX.'CatalogRatings'); @@ -219,7 +219,7 @@ /*function purgeVotes() { - $expired = adodb_mktime() - 86400 * $this->Application->ConfigValue('Timeout_Rating'); // 3600 + $expired = time() - 86400 * $this->Application->ConfigValue('Timeout_Rating'); // 3600 $sql = 'DELETE FROM ' . TABLE_PREFIX . 'CatalogRatings WHERE CreatedOn < ' . $expired;