[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 13/32: Correct return value of Table_Data_SQL
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 13/32: Correct return value of Table_Data_SQL->load : false if nothing found |
Date: |
Thu, 5 Jan 2023 14:18:30 -0500 (EST) |
sparkyx pushed a commit to branch devel
in repository noalyss.
commit a6757bce4dab1051918ae1be24b44da8f7ed5e23
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sun Dec 18 00:32:28 2022 +0100
Correct return value of Table_Data_SQL->load : false if nothing found
---
include/lib/table_data_sql.class.php | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/lib/table_data_sql.class.php
b/include/lib/table_data_sql.class.php
index da1078f20..4c55b377f 100644
--- a/include/lib/table_data_sql.class.php
+++ b/include/lib/table_data_sql.class.php
@@ -188,13 +188,14 @@ abstract class Table_Data_SQL extends Data_SQL
if ($this->cn->count()==0)
{
$this->$pk=-1;
- return true;
+ return false;
}
foreach ($result[0] as $key=> $value)
{
$this->$key=$value;
}
+ return true;
}
- [Noalyss-commit] [noalyss] branch devel updated (f1d3862e1 -> f78ec1e40), Dany De Bontridder, 2023/01/05
- [Noalyss-commit] [noalyss] 01/32: Do no save empty comment or description, Dany De Bontridder, 2023/01/05
- [Noalyss-commit] [noalyss] 07/32: Compatibility PHP8.1 , node can be null, Dany De Bontridder, 2023/01/05
- [Noalyss-commit] [noalyss] 10/32: Esthetic, Dany De Bontridder, 2023/01/05
- [Noalyss-commit] [noalyss] 13/32: Correct return value of Table_Data_SQL->load : false if nothing found,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 11/32: Cleaning code : TVA rewritten, Dany De Bontridder, 2023/01/05
- [Noalyss-commit] [noalyss] 23/32: New : Follow Up , the description modifiable is using NicEdit, Dany De Bontridder, 2023/01/05
- [Noalyss-commit] [noalyss] 32/32: Merge branch '9035-followup-description-mod-rtf', Dany De Bontridder, 2023/01/05
- [Noalyss-commit] [noalyss] 22/32: PHP 8.1 , option ASSERT_QUIET_EVAL is removed, Dany De Bontridder, 2023/01/05
- [Noalyss-commit] [noalyss] 27/32: Fix Bug TVA : cannot save VAT, Dany De Bontridder, 2023/01/05
- [Noalyss-commit] [noalyss] 20/32: New #0001327: Code TVA : utilisation des symboles plutôt que des codes, Dany De Bontridder, 2023/01/05
- [Noalyss-commit] [noalyss] 02/32: Bug : incorrect name, Dany De Bontridder, 2023/01/05
- [Noalyss-commit] [noalyss] 12/32: PHPUNIT improve test, Dany De Bontridder, 2023/01/05
- [Noalyss-commit] [noalyss] 28/32: Cosmetic, Dany De Bontridder, 2023/01/05
- [Noalyss-commit] [noalyss] 24/32: New : Follow Up , the description modifiable is using NicEdit, Dany De Bontridder, 2023/01/05