mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-14 20:17:14 +01: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;
|
||||
}
|
||||
foreach($actions as $action) {
|
||||
$this->app->DB->Insert(
|
||||
|
||||
$sql =
|
||||
sprintf(
|
||||
"INSERT INTO `module_action` (`module`,`action`) VALUES ('%s','%s')",
|
||||
$this->app->DB->real_escape_string($module), $this->app->DB->real_escape_string($action)
|
||||
)
|
||||
"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->Insert(
|
||||
$sql
|
||||
);
|
||||
$this->moduleActions[$module][] = $action;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user