fix updating wrong column when deleting a fpm configuration

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2018-02-09 09:20:46 +01:00
parent f290497b64
commit 05b4c58aa8

View File

@@ -496,7 +496,7 @@ if ($page == 'overview') {
// set default fpm daemon config for all php-config that use this config that is to be deleted
$upd_stmt = Database::prepare("
UPDATE `" . TABLE_PANEL_PHPCONFIGS . "` SET
`phpsettingid` = '1' WHERE `phpsettingid` = :id");
`fpmsettingid` = '1' WHERE `fpmsettingid` = :id");
Database::pexecute($upd_stmt, array(
'id' => $id
));