JoomlaPlug!

JoomlaCloner - Backup and Restore Component

OOPS. Your Flash player is missing or outdated.Click here to update your player so you can see this content.
JoomlaCloner - Joomla backup and restore

 
 
JoomlaPlug.com
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Bugs in JCron 1.2 (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Bugs in JCron 1.2
#2041
attendevents (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Bugs in JCron 1.2 1 Year, 11 Months ago  
I believe the following are bugs in JCron 1.2. Can anyone confirm these?

CronParser.class.php :: line 208
Currently: $hour = date("h", $this->lastRan);
Should be: $hour = date("H", $this->lastRan);
Reason: 'h' is 12 hour formatted, where as 'H' is 24. Since the code in jcron.php uses 24 hour time comparisons, CronParser.class.php is returning incompatible values.

CronParser.class.php :: line 293
Currently: } while($minute >= $this->now[0]);
Should Be: } while($minute > $this->now[0]);
Reason: If $arMinutes is a single element array (which it is in my case), the inclusion of equality causes the loop to repeat twice, so that $minutes becomes null.

CronParser.class.php :: line 298
Currently: if($minute > $this->now[1] || $minute == "&quot{
Should Be: if($minute == "&quot{
Reason: Not sure why $minute is being compared to hour? Perhaps now[1] should have been now[0]. If that's the case, the condition is irrelevant, as it is handled in the loop above. Therefore, the only case to check is if the entire contents of $arMinutes < $minute, in which case $minute will be empty.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#2042
admin (Admin)
Admin
Posts: 2502
graph
User Online Now Click here to see the profile of this user
joomlaplug JoomlaPlug.com
Re:Bugs in JCron 1.2 1 Year, 11 Months ago  
Hi there! Thanks for the heads up, we will look into these bugs and try to fix them!

Regards! Ovidiu
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Search JoomlaPlug.com

Download Joomla

All rights reserved to JoomlaPlug.com ©2006-2009!
Site powered by Joomla!