From 7c3f8a1dfe71d46b0e112710486ce82efbbf4a37 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 10 Aug 2023 11:45:09 +0200 Subject: [PATCH] Fix warning --- htdocs/accountancy/class/accountingaccount.class.php | 4 +++- htdocs/adherents/list.php | 3 --- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/htdocs/accountancy/class/accountingaccount.class.php b/htdocs/accountancy/class/accountingaccount.class.php index 160383ce5c2..6405a55c689 100644 --- a/htdocs/accountancy/class/accountingaccount.class.php +++ b/htdocs/accountancy/class/accountingaccount.class.php @@ -734,7 +734,7 @@ class AccountingAccount extends CommonObject * @param FactureLigne|SupplierInvoiceLine $factureDet Facture Det * @param array $accountingAccount Array of Accounting account * @param string $type Customer / Supplier - * @return array|int Accounting accounts suggested or < 0 if technical error. + * @return array|int Array of accounting accounts suggested or < 0 if technical error. * 'suggestedaccountingaccountbydefaultfor'=>Will be used for the label to show on tooltip for account by default on any product * 'suggestedaccountingaccountfor'=>Is the account suggested for this product */ @@ -941,5 +941,7 @@ class AccountingAccount extends CommonObject return $hookmanager->resArray; } } + + return -1; } } diff --git a/htdocs/adherents/list.php b/htdocs/adherents/list.php index 52ef9109f9c..014448a5a95 100644 --- a/htdocs/adherents/list.php +++ b/htdocs/adherents/list.php @@ -143,9 +143,6 @@ $fieldstosearchall = array( 'd.note_public'=>'NotePublic', 'd.note_private'=>'NotePrivate', ); -if ($db->type == 'pgsql') { - unset($fieldstosearchall['d.rowid']); -} $arrayfields = array( 'd.ref'=>array('label'=>"Ref", 'checked'=>1),