Remove redundant db commit in Page::setAsLandingPage() (#2478)
authorJens Hausdorf <hello@jens-hausdorf.de>
Sat, 25 Nov 2017 15:28:02 +0000 (16:28 +0100)
committerTim Düsterhus <timwolla@googlemail.com>
Sat, 25 Nov 2017 15:28:02 +0000 (16:28 +0100)
wcfsetup/install/files/lib/data/page/Page.class.php

index 630a6b887cfcda788879b719243fd88b0dfb9ac7..2b68d78d3456d09b70585a8652eee153c07d894f 100644 (file)
@@ -264,7 +264,6 @@ class Page extends DatabaseObject implements ILinkableObject, ITitledObject {
                        1,
                        $this->pageID
                ]);
-               WCF::getDB()->commitTransaction();
                
                $sql = "UPDATE  wcf".WCF_N."_application
                        SET     landingPageID = ?