2 Commits

Author SHA1 Message Date
Arne Weiss 22978ad714 Bump version to 0.1.8
Build / build (push) Successful in 15s
Release / release (push) Successful in 12s
2026-06-01 10:02:15 +02:00
Arne Weiss b8c0db4067 Fix DB insert: remove add_prefix=false so table prefix is applied
Db::insert() was called with add_prefix=false, causing it to target
'simple_withdrawal_request' instead of '{prefix}simple_withdrawal_request'.
Dropping the explicit false restores the default (true).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-01 10:01:47 +02:00
+2 -2
View File
@@ -27,7 +27,7 @@ class Simple_withdrawalbutton extends Module
{ {
$this->name = 'simple_withdrawalbutton'; $this->name = 'simple_withdrawalbutton';
$this->tab = 'administration'; $this->tab = 'administration';
$this->version = '0.1.7'; $this->version = '0.1.8';
$this->author = 'Arne Weiss'; $this->author = 'Arne Weiss';
$this->need_instance = 0; $this->need_instance = 0;
$this->bootstrap = true; $this->bootstrap = true;
@@ -464,7 +464,7 @@ class Simple_withdrawalbutton extends Module
'user_agent_hash' => $userAgentHash ?: null, 'user_agent_hash' => $userAgentHash ?: null,
]; ];
$ok = Db::getInstance()->insert(self::TABLE_REQUEST, $insert, false, true, Db::INSERT, false); $ok = Db::getInstance()->insert(self::TABLE_REQUEST, $insert, false, true, Db::INSERT);
if (!$ok) { if (!$ok) {
return false; return false;
} }