From 571f5b912ba28dba823355604da6a8bb0f92f196 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Fri, 21 Mar 2014 06:29:00 +0000 Subject: [PATCH] Limit the transaction for the menu to SQLite. --- resources/classes/menu.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/resources/classes/menu.php b/resources/classes/menu.php index b4ec3865f3..f80e78a2cb 100644 --- a/resources/classes/menu.php +++ b/resources/classes/menu.php @@ -59,7 +59,9 @@ } //begin the transaction - $db->beginTransaction(); + if ($db_type == "sqlite") { + $db->beginTransaction(); + } //use the app array to restore the default menu foreach ($apps as $row) { @@ -186,7 +188,9 @@ } //commit the transaction - $db->commit(); + if ($db_type == "sqlite") { + $db->commit(); + } } //end function //restore the menu and group permissions