Bugfix typos onlineshop_tasks -> onlineshops_tasks

This commit is contained in:
OpenXE 2024-04-30 14:52:34 +02:00
parent b3b516d0ad
commit 6d0b0006b7
2 changed files with 2 additions and 2 deletions

View File

@ -1193,7 +1193,7 @@ INNER JOIN shopexport s ON
$task = $this->app->DB->SelectRow('SELECT * FROM onlineshops_tasks WHERE shop_id=\'' . $shopid . '\' AND command=\'' . $command . '\'');
if(!empty($task['id'])){
if($task['status'] !== 'running'){
$this->app->DB->Update('UPDATE onlineshop_tasks SET status=\'inactive\',counter=0 WHERE id=' . $task['id']);
$this->app->DB->Update('UPDATE onlineshops_tasks SET status=\'inactive\',counter=0 WHERE id=' . $task['id']);
}
}
else{

View File

@ -71,7 +71,7 @@ class WidgetShopexport extends WidgetGenShopexport
$task = $this->app->DB->SelectRow('SELECT * FROM onlineshops_tasks WHERE shop_id=\'' . $id . '\' AND command=\'' . $command . '\' LIMIT 1');
if(!empty($task['id'])){
if($task['status'] !== 'running'){
$this->app->DB->Update('UPDATE onlineshop_tasks SET status=\'inactive\',counter=0 WHERE id=' . $task['id']);
$this->app->DB->Update('UPDATE onlineshops_tasks SET status=\'inactive\',counter=0 WHERE id=' . $task['id']);
}
}else{
$this->app->DB->Insert('INSERT INTO onlineshops_tasks (shop_id, command) VALUES (' . $id . ',\'' . $command . '\')');