FIX: Moved code to where the variable is defined

This commit is contained in:
Raphaël Doursenaud 2014-09-18 11:46:53 +02:00 committed by Raphaël Doursenaud
parent 64da1b1dc0
commit 9a141215bb

View File

@ -137,17 +137,18 @@ if ($result) {
$tabpay = array ();
$tabbq = array ();
$tabtp = array ();
$tabcompany[$obj->rowid] = array (
'id' => $obj->socid,
'name' => $obj->name,
'code_client' => $obj->code_compta
);
$tabtype = array ();
$i = 0;
while ( $i < $num ) {
$obj = $db->fetch_object($result);
$tabcompany[$obj->rowid] = array (
'id' => $obj->socid,
'name' => $obj->name,
'code_client' => $obj->code_compta
);
// Controls
$compta_bank = $obj->account_number;
if ($obj->label == '(SupplierInvoicePayment)')
@ -580,4 +581,4 @@ if ($action == 'export_csv') {
// End of page
llxFooter();
}
$db->close();
$db->close();