Index: include/class.transactions.php ================================================================== --- include/class.transactions.php +++ include/class.transactions.php @@ -117,11 +117,11 @@ { $db = DB::getInstance(); if ($db->simpleQuerySingle('SELECT 1 FROM membres_transactions WHERE id_transaction = ? LIMIT 1;', false, (int) $id)) { - throw new UserException('Il existe des transactions utilisant cette catégorie de transaction.') + throw new UserException('Il existe des transactions utilisant cette catégorie de transaction.'); } return $db->simpleExec('DELETE FROM transactions WHERE id = ?;', (int) $id); } @@ -131,10 +131,11 @@ return $db->simpleQuerySingle('SELECT * FROM transactions WHERE id = ?;', true, (int) $id); } public function listByName() { - return $db->simpleStatementFetch('SELECT * FROM transactions ORDER BY intitule;') + $db = DB::getInstance(); + return $db->simpleStatementFetch('SELECT * FROM transactions ORDER BY intitule;'); } } ?> Index: templates/admin/_head.tpl ================================================================== --- templates/admin/_head.tpl +++ templates/admin/_head.tpl @@ -26,11 +26,11 @@ {if $user.droits.membres >= Garradin\Membres::DROIT_ECRITURE}