Skip to content

Commit

Permalink
Update mod_chequereceipt_thyme.php
Browse files Browse the repository at this point in the history
The property db does not exist on mod_chequereceipt_thyme.
  • Loading branch information
frederic34 committed Apr 20, 2019
1 parent 734b1ca commit e5559ac
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions htdocs/core/modules/cheque/mod_chequereceipt_thyme.php
@@ -1,5 +1,6 @@
<?php
/* Copyright (C) 2015 Juanjo Menent <jmenent@2byte.es>
/* Copyright (C) 2015 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2019 Frédéric France <frederic.france@netlogic.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -51,11 +52,11 @@ class mod_chequereceipt_thyme extends ModeleNumRefChequeReceipts
*/
public function info()
{
global $conf, $langs;
global $conf, $langs, $db;

$langs->load("bills");

$form = new Form($this->db);
$form = new Form($db);

$texte = $langs->trans('GenericNumRefModelDesc')."<br>\n";
$texte.= '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
Expand Down

0 comments on commit e5559ac

Please sign in to comment.