mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Decode args and options in getScheduledTask()
This commit is contained in:
parent
5ff2f15485
commit
924c98bf4e
1 changed files with 11 additions and 1 deletions
|
|
@ -202,7 +202,17 @@ class DB implements QueueInterface
|
|||
$stmt = $oDB->query('SELECT * FROM task_schedule WHERE task_srl = ?', [$task_srl]);
|
||||
$task = $stmt->fetchObject();
|
||||
$stmt->closeCursor();
|
||||
return $task ?: null;
|
||||
|
||||
if ($task)
|
||||
{
|
||||
$task->args = unserialize($task->args);
|
||||
$task->options = unserialize($task->options);
|
||||
return $task;
|
||||
}
|
||||
else
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue