Dotclear

Changeset 795


Ignore:
Timestamp:
02/22/09 14:27:39 (15 years ago)
Author:
Tomtom33
Message:

Added conditions for put() function

Location:
plugins/dcCron
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/dcCron/_define.php

    r794 r795  
    1717     /* Description*/         "Schedule any tasks", 
    1818     /* Author */             "Tomtom", 
    19      /* Version */            '0.4', 
     19     /* Version */            '0.5', 
    2020     /* Permissions */        'admin', 
    2121                              null, 
  • plugins/dcCron/inc/class.dc.cron.php

    r794 r795  
    7474          } 
    7575 
    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) { 
    8181               call_user_func($callback); 
    8282 
Note: See TracChangeset for help on using the changeset viewer.

Sites map