Changed use of active to status
This commit is contained in:
@@ -81,14 +81,10 @@ class Model_Task extends ORMOSB {
|
||||
|
||||
/** LIST FUNCTIONS **/
|
||||
|
||||
private function _list_active() {
|
||||
return $this->where('status','=',1)->find_all();
|
||||
}
|
||||
|
||||
public function list_active() {
|
||||
$return = array();
|
||||
|
||||
foreach ($this->_list_active() as $to) {
|
||||
foreach ($this->_where_active()->find_all() as $to) {
|
||||
$ct = sprintf('%s %s %s %s %s',$to->int_min,$to->int_hour,$to->int_month_day,$to->int_month,$to->int_week_day);
|
||||
|
||||
$c = new Cron($ct,$to->command);
|
||||
|
Reference in New Issue
Block a user