diff --git a/composer.json b/composer.json index bd81e101cfc..f9d06530c9a 100644 --- a/composer.json +++ b/composer.json @@ -29,7 +29,6 @@ "ckeditor/ckeditor" : "4.12.1", "mike42/escpos-php" : "2.2", "mobiledetect/mobiledetectlib" : "2.8.34", - "phpoffice/phpexcel" : "1.8.1", "restler/framework" : "3.0.0-RC6", "tecnickcom/tcpdf" : "6.3.2", "nnnick/chartjs" : "^2.9", diff --git a/htdocs/fourn/paiement/list.php b/htdocs/fourn/paiement/list.php index 305c7bedba5..a876f5753b9 100644 --- a/htdocs/fourn/paiement/list.php +++ b/htdocs/fourn/paiement/list.php @@ -11,6 +11,7 @@ * Copyright (C) 2017 Alexandre Spangaro * Copyright (C) 2018-2021 Frédéric France * Copyright (C) 2020 Tobias Sekan + * Copyright (C) 2021 Ferran Marcet * * 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 @@ -200,9 +201,8 @@ if ($search_amount) { $sql .= natural_search('p.amount', $search_amount, 1); } if ($search_bank_account > 0) { - $sql .= ' AND b.fk_account='.$search_bank_account."'"; + $sql .= ' AND b.fk_account = '.((int) $search_bank_account); } - if ($search_all) { $sql .= natural_search(array_keys($fieldstosearchall), $search_all); }