[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 13/16: Data_SQL if column doesn't exist
From: |
dwm |
Subject: |
[Noalyss-commit] [noalyss] 13/16: Data_SQL if column doesn't exist |
Date: |
Tue, 27 May 2025 09:26:10 -0400 (EDT) |
sparkyx pushed a commit to branch unstable
in repository noalyss.
commit 4112b1a14b7cf704d4a69b27674ef58cb0e4e7df
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Thu May 22 00:04:38 2025 +0200
Data_SQL if column doesn't exist
---
include/lib/data_sql.class.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/lib/data_sql.class.php b/include/lib/data_sql.class.php
index 03e336efc..ba4512cf8 100644
--- a/include/lib/data_sql.class.php
+++ b/include/lib/data_sql.class.php
@@ -254,7 +254,7 @@ abstract class Data_SQL
$this->$cols=$p_value;
return $this;
}
- if (array_key_exists($cols, $this->a_virtual_col))
+ if ( ! empty ($this->a_virtual_col) && array_key_exists($cols,
$this->a_virtual_col))
{
$this->$cols=$p_value;
return $this;
@@ -266,7 +266,7 @@ abstract class Data_SQL
if (array_key_exists($cols, $this->type)) {
return $this->$cols;
}
- if (array_key_exists($cols, $this->a_virtual_col))
+ if (! empty ($this->a_virtual_col) && array_key_exists($cols,
$this->a_virtual_col))
{
return $this->$cols;
}
- [Noalyss-commit] [noalyss] 04/16: FIX bug due changes Data_SQL, (continued)
- [Noalyss-commit] [noalyss] 04/16: FIX bug due changes Data_SQL, dwm, 2025/05/27
- [Noalyss-commit] [noalyss] 02/16: FONT MONSERRAT ROBOTO Title and menu, dwm, 2025/05/27
- [Noalyss-commit] [noalyss] 05/16: FREC : checkbox, checked by range, hidden elements must not be checked, dwm, 2025/05/27
- [Noalyss-commit] [noalyss] 08/16: Improve Code: Database : add __toString, dwm, 2025/05/27
- [Noalyss-commit] [noalyss] 14/16: Add column timestamp for table TOOL_UOS, dwm, 2025/05/27
- [Noalyss-commit] [noalyss] 01/16: Code Improve : Data_SQL, dwm, 2025/05/27
- [Noalyss-commit] [noalyss] 06/16: FIX bug due changes Data_SQL, dwm, 2025/05/27
- [Noalyss-commit] [noalyss] 07/16: Detail Operation for small screen, dwm, 2025/05/27
- [Noalyss-commit] [noalyss] 09/16: Code Improve : Single_Record, dwm, 2025/05/27
- [Noalyss-commit] [noalyss] 12/16: Data_SQL if we use $this->sql , then must be set SQL, dwm, 2025/05/27
- [Noalyss-commit] [noalyss] 13/16: Data_SQL if column doesn't exist,
dwm <=
- [Noalyss-commit] [noalyss] 15/16: Fix bug : wrong function name, dwm, 2025/05/27
- [Noalyss-commit] [noalyss] 11/16: CSS : cosmetic : font in a variable + outline input text in orange, dwm, 2025/05/27
- [Noalyss-commit] [noalyss] 16/16: PHP8.3 comptability, dynamic members, dwm, 2025/05/27