| @@ -26,9 +26,9 @@ | ||
| 26 | 26 | * @return bool |
| 27 | 27 | */ |
| 28 | 28 | public final function start($args = []) { |
| 29 | 29 | try { |
| 30 | - if ($this->is_process_running()) throw new UnprocessableException(__('Process already running', ud_get_stateless_media()->domain)); | |
| 30 | + if ($this->is_processing()) throw new UnprocessableException(__('Process already running', ud_get_stateless_media()->domain)); | |
| 31 | 31 | |
| 32 | 32 | // Make sure there is no orphaned data and state |
| 33 | 33 | delete_site_option($this->get_stopped_option_key()); |
| 34 | 34 | delete_transient($this->get_total_items_trans_key()); |
| @@ -174,9 +174,9 @@ | ||
| 174 | 174 | public function get_process_notice() { |
| 175 | 175 | $notices = parent::get_process_notice(); |
| 176 | 176 | $last = intval($this->get_process_meta('last_at')); |
| 177 | 177 | if (!$last) { |
| 178 | - $last = strtotime($this->get_process_meta('datetime')); | |
| 178 | + $last = strtotime( $this->get_process_meta('datetime') ?? '' ); | |
| 179 | 179 | if (false === $last) return $notices; |
| 180 | 180 | } |
| 181 | 181 | |
| 182 | 182 | if (!property_exists($this, 'cron_interval')) return $notices; |