mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 05:53:13 +00:00
Remove dead code
This commit is contained in:
@@ -77,8 +77,6 @@ class patch_320a implements patchInterface
|
||||
$rs = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||
$stmt->closeCursor();
|
||||
|
||||
$tasks = array();
|
||||
|
||||
$sql = 'UPDATE task2 SET `class` = :class WHERE task_id = :task_id';
|
||||
$stmt = $appbox->get_connection()->prepare($sql);
|
||||
foreach ($rs as $row) {
|
||||
|
@@ -64,14 +64,12 @@ class patch_370a8 implements patchInterface
|
||||
*/
|
||||
public function apply(base $appbox, Application $app)
|
||||
{
|
||||
$taskManager = $app['task-manager'];
|
||||
|
||||
$ttasks = array();
|
||||
$conn = $appbox->get_connection();
|
||||
$sql = 'SELECT task_id, active, name, class, settings FROM task2 WHERE class=\'task_period_workflow01\' OR class=\'task_period_ftv\'';
|
||||
if (($stmt = $conn->prepare($sql)) !== FALSE) {
|
||||
$stmt->execute();
|
||||
$ttasks = $row = $stmt->fetchAll();
|
||||
$ttasks = $stmt->fetchAll();
|
||||
$stmt->closeCursor();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user