mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-25 06:00:28 +01:00
Bugfix typos onlineshop_tasks -> onlineshops_tasks
This commit is contained in:
parent
b3b516d0ad
commit
6d0b0006b7
@ -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 . '\'');
|
$task = $this->app->DB->SelectRow('SELECT * FROM onlineshops_tasks WHERE shop_id=\'' . $shopid . '\' AND command=\'' . $command . '\'');
|
||||||
if(!empty($task['id'])){
|
if(!empty($task['id'])){
|
||||||
if($task['status'] !== 'running'){
|
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{
|
else{
|
||||||
|
@ -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');
|
$task = $this->app->DB->SelectRow('SELECT * FROM onlineshops_tasks WHERE shop_id=\'' . $id . '\' AND command=\'' . $command . '\' LIMIT 1');
|
||||||
if(!empty($task['id'])){
|
if(!empty($task['id'])){
|
||||||
if($task['status'] !== 'running'){
|
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{
|
}else{
|
||||||
$this->app->DB->Insert('INSERT INTO onlineshops_tasks (shop_id, command) VALUES (' . $id . ',\'' . $command . '\')');
|
$this->app->DB->Insert('INSERT INTO onlineshops_tasks (shop_id, command) VALUES (' . $id . ',\'' . $command . '\')');
|
||||||
|
Loading…
Reference in New Issue
Block a user