Changeset 1969:d2ef655d3195 for plugins/maintenance/inc
- Timestamp:
- 09/20/13 18:10:13 (12 years ago)
- Branch:
- default
- Location:
- plugins/maintenance/inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/maintenance/inc/class.dc.maintenance.php
r1955 r1969 230 230 231 231 /** 232 * Get expired task .232 * Get expired tasks. 233 233 * 234 234 * @return <b>array</b> Array of expired Task ID / date … … 246 246 // Check if task exists 247 247 if (($task = $this->getTask($rs->log_msg)) !== null) { 248 // Check if tasks expired249 if ( strtotime($rs->log_dt) + $task->ts() < time()) {248 // Check if remider is used and tasks expired 249 if ($task->ts() && strtotime($rs->log_dt) + $task->ts() < time()) { 250 250 $logs[$rs->log_msg] = $rs->log_dt; 251 251 } -
plugins/maintenance/inc/class.dc.maintenance.task.php
r1959 r1969 63 63 $this->success = __('Task successfully executed.'); 64 64 } 65 66 $core->auth->user_prefs->addWorkspace('maintenance'); 67 $ts = $core->auth->user_prefs->maintenance->get('ts_'.$this->id); 68 69 $this->ts = abs((integer) $ts); 65 70 } 66 71 … … 93 98 public function ts() 94 99 { 95 return abs((integer) $this->ts);100 return $this->ts === false ? false : abs((integer) $this->ts); 96 101 } 97 102
Note: See TracChangeset
for help on using the changeset viewer.