@Loma
Thaaats really strange, that last record should be updated to 0 repeats and then to be removed.
First check if it is problem with cron.
Go to index.php of plugin and find this code (do not forget to revert changes after testing):
// EXECUTE HOURLY CRON
function osp_hourly_cron() {
ModelOSP::newInstance()->purgeExpired();
}
change it to:
// EXECUTE HOURLY CRON
function osp_hourly_cron() {
ModelOSP::newInstance()->purgeExpired();
}
osp_hourly_cron();
Go to homepage and refresh it, check if repeats has been decreased to 0 and then removed.
If yes, hourly cron does not work correctly in osclass (it does not call that function).
If not, got to model/ModelOSP.php
Find function: purgeExpired()
in this function there is:
$this->dao->where(sprintf("TIMESTAMPDIFF(MINUTE, dt_expire, '%s') >= 0", date('Y-m-d H:i:s')));
Change it to:
$this->dao->where('dt_expire <= "' . date('Y-m-d H:i:s') . '"');
Go to homepage, refresh, go to user account and check if repeats has been decreased or message removed.
Let me know.