Changeset 795
- Timestamp:
- 02/22/09 14:27:39 (15 years ago)
- Location:
- plugins/dcCron
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/dcCron/_define.php
r794 r795 17 17 /* Description*/ "Schedule any tasks", 18 18 /* Author */ "Tomtom", 19 /* Version */ '0. 4',19 /* Version */ '0.5', 20 20 /* Permissions */ 'admin', 21 21 null, -
plugins/dcCron/inc/class.dc.cron.php
r794 r795 74 74 } 75 75 76 if (77 (array_key_exists($nid,$this->tasks) &&78 $this->tasks[$nid]['interval'] != $interval) ||79 !array_key_exists($nid,$this->tasks) 80 ) {76 $cond_interval = array_key_exists($nid,$this->tasks) && $this->tasks[$nid]['interval'] != $interval; 77 $cond_callback = array_key_exists($nid,$this->tasks) ? serialize($this->tasks[$nid]['callback']) !== serialize($callback) : false; 78 $cond_exists = !array_key_exists($nid,$this->tasks); 79 80 if ($cond_interval || $cond_callback || $cond_exists) { 81 81 call_user_func($callback); 82 82
Note: See TracChangeset
for help on using the changeset viewer.