From 6d0b0006b7b395feb60c3268332f09bd65309aec Mon Sep 17 00:00:00 2001 From: OpenXE <> Date: Tue, 30 Apr 2024 14:52:34 +0200 Subject: [PATCH] Bugfix typos onlineshop_tasks -> onlineshops_tasks --- www/pages/onlineshops.php | 2 +- www/widgets/widget.shopexport.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/www/pages/onlineshops.php b/www/pages/onlineshops.php index 6d78dd55..a1eea6e4 100644 --- a/www/pages/onlineshops.php +++ b/www/pages/onlineshops.php @@ -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{ diff --git a/www/widgets/widget.shopexport.php b/www/widgets/widget.shopexport.php index 7a6e3451..3ff7c20e 100644 --- a/www/widgets/widget.shopexport.php +++ b/www/widgets/widget.shopexport.php @@ -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 . '\')');