mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2025-03-31 02:20:22 +02:00
Bugfix double entry of module_action upon initialisation -> Insert / Update
This commit is contained in:
parent
06143f98b1
commit
d657f52491
@ -6379,11 +6379,16 @@ title: 'Abschicken',
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
foreach($actions as $action) {
|
foreach($actions as $action) {
|
||||||
$this->app->DB->Insert(
|
|
||||||
|
$sql =
|
||||||
sprintf(
|
sprintf(
|
||||||
"INSERT INTO `module_action` (`module`,`action`) VALUES ('%s','%s')",
|
"INSERT INTO `module_action` (`module`,`action`) VALUES ('%s','%s') ON DUPLICATE KEY UPDATE `module`='%s', `action`='%s'",
|
||||||
$this->app->DB->real_escape_string($module), $this->app->DB->real_escape_string($action)
|
$this->app->DB->real_escape_string($module), $this->app->DB->real_escape_string($action),
|
||||||
)
|
$this->app->DB->real_escape_string($module), $this->app->DB->real_escape_string($action)
|
||||||
|
);
|
||||||
|
|
||||||
|
$this->app->DB->Insert(
|
||||||
|
$sql
|
||||||
);
|
);
|
||||||
$this->moduleActions[$module][] = $action;
|
$this->moduleActions[$module][] = $action;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user