Limit the transaction for the menu to SQLite.

This commit is contained in:
Mark Crane 2014-03-21 06:29:00 +00:00
parent 9ba46dfc8a
commit 571f5b912b
1 changed files with 6 additions and 2 deletions

View File

@ -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