Fix: A begin tran with no end

This commit is contained in:
Laurent Destailleur 2009-05-08 03:53:36 +00:00
parent 1883b46ada
commit 7710d08b0c

View File

@ -31,12 +31,12 @@ $langs->load("other");
if (!$user->admin) if (!$user->admin)
accessforbidden(); accessforbidden();
/* /*
* View * View
*/ */
llxHeader(); llxHeader();
print_fiche_titre($langs->trans("AvailableModules"),'','setup'); print_fiche_titre($langs->trans("AvailableModules"),'','setup');
@ -46,8 +46,6 @@ print $langs->trans("ToActivateModule").'<br>';
print "<br>\n"; print "<br>\n";
// Charge les modules // Charge les modules
$db->begin();
$dir = DOL_DOCUMENT_ROOT . "/includes/modules/"; $dir = DOL_DOCUMENT_ROOT . "/includes/modules/";
$handle=opendir($dir); $handle=opendir($dir);
$modules = array(); $modules = array();
@ -82,7 +80,7 @@ $var=false;
$sortorder=$modules_names; $sortorder=$modules_names;
ksort($sortorder); ksort($sortorder);
$rights_ids = array(); $rights_ids = array();
foreach($sortorder as $numero=>$name) foreach($sortorder as $numero=>$name)
{ {
$idperms=""; $idperms="";
$var=!$var; $var=!$var;