* [misc] Optimize codes.
This commit is contained in:
@@ -356,7 +356,7 @@ class execution extends control
|
||||
$pager = new pager(count($tasks2Imported), $recPerPage, $pageID);
|
||||
|
||||
$tasks2ImportedList = array_chunk($tasks2Imported, $pager->recPerPage, true);
|
||||
$tasks2ImportedList = empty($tasks2ImportedList) ? $tasks2ImportedList : (isset($tasks2ImportedList[$pageID - 1]) ? $tasks2ImportedList[$pageID - 1] : current($tasks2ImportedList));
|
||||
if(!empty($tasks2ImportedList)) $tasks2ImportedList = isset($tasks2ImportedList[$pageID - 1]) ? $tasks2ImportedList[$pageID - 1] : current($tasks2ImportedList);
|
||||
$tasks2ImportedList = $this->loadModel('task')->processTasks($tasks2ImportedList);
|
||||
|
||||
$this->view->title = $execution->name . $this->lang->hyphen . $this->lang->execution->importTask;
|
||||
|
||||
Reference in New Issue
Block a user