Limit the transaction for the menu to SQLite.
This commit is contained in:
parent
18cb6271c3
commit
170a0864f5
|
|
@ -59,7 +59,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
//begin the transaction
|
//begin the transaction
|
||||||
$db->beginTransaction();
|
if ($db_type == "sqlite") {
|
||||||
|
$db->beginTransaction();
|
||||||
|
}
|
||||||
|
|
||||||
//use the app array to restore the default menu
|
//use the app array to restore the default menu
|
||||||
foreach ($apps as $row) {
|
foreach ($apps as $row) {
|
||||||
|
|
@ -186,7 +188,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
//commit the transaction
|
//commit the transaction
|
||||||
$db->commit();
|
if ($db_type == "sqlite") {
|
||||||
|
$db->commit();
|
||||||
|
}
|
||||||
} //end function
|
} //end function
|
||||||
|
|
||||||
//restore the menu and group permissions
|
//restore the menu and group permissions
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue