PHP8.1 compatibility
This commit is contained in:
parent
4420a634c3
commit
bc50a2996e
5 changed files with 6 additions and 6 deletions
|
|
@ -179,7 +179,7 @@ abstract class Table_Data_SQL extends Data_SQL
|
|||
$sql=$this->build_query();
|
||||
$pk=$this->primary_key;
|
||||
// primary cannot be null or empty
|
||||
if (trim($this->$pk)==="" || $this->$pk===null) {
|
||||
if (trim($this->$pk??"")==="" || $this->$pk===null) {
|
||||
$this->pk=-1;
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue