PHP8.1 compatibility

This commit is contained in:
sparkyx 2023-07-16 18:00:40 +02:00
parent 4420a634c3
commit bc50a2996e
5 changed files with 6 additions and 6 deletions

View file

@ -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;
}