X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Ffix_menu.php;h=50be57d018cba98d0703be82218e8a49528bd838;hp=2aad72e31f2ca9070466229375dd7f9186e6a0fe;hb=e5dffd4249c97200cbad02f3f4eaf5c373fdb89a;hpb=2164ff00dd24d381e1d412ae248f486230b2019a diff --git a/inc/fix_menu.php b/inc/fix_menu.php index 2aad72e31f..50be57d018 100644 --- a/inc/fix_menu.php +++ b/inc/fix_menu.php @@ -98,12 +98,12 @@ foreach (array('guest','member','admin') as $menu) { initSqls(); // Now insert our unqiue key for action-what combination - addSql(sprintf("ALTER TABLE `{?_MYSQL_PREFIX?}_%s_menu` DROP INDEX `action_what`", $menu)); - addSql(sprintf("ALTER TABLE `{?_MYSQL_PREFIX?}_%s_menu` ADD UNIQUE INDEX `action_what` (`action`, `what`)", $menu)); + addSql(sprintf('ALTER TABLE `{?_MYSQL_PREFIX?}_%s_menu` DROP INDEX `action_what`', $menu)); + addSql(sprintf('ALTER TABLE `{?_MYSQL_PREFIX?}_%s_menu` ADD UNIQUE INDEX `action_what` (`action`, `what`)', $menu)); // Now insert our unqiue key for what - addSql(sprintf("ALTER TABLE `{?_MYSQL_PREFIX?}_%s_menu` DROP INDEX `what`", $menu)); - addSql(sprintf("ALTER TABLE `{?_MYSQL_PREFIX?}_%s_menu` ADD UNIQUE INDEX `what` (`what`)", $menu)); + addSql(sprintf('ALTER TABLE `{?_MYSQL_PREFIX?}_%s_menu` DROP INDEX `what`', $menu)); + addSql(sprintf('ALTER TABLE `{?_MYSQL_PREFIX?}_%s_menu` ADD UNIQUE INDEX `what` (`what`)', $menu)); // And run all runFilterChain('run_sqls');