FIX bug due changes Data_SQL
This commit is contained in:
parent
8befe04534
commit
70bae8b1b7
17 changed files with 116 additions and 39 deletions
|
|
@ -103,7 +103,7 @@ abstract class Data_SQL
|
|||
var $type; //! Type of the data
|
||||
var $date_format; //! defaullt date format
|
||||
var $default;
|
||||
var $table;
|
||||
var $table;
|
||||
|
||||
public function __toString(): string
|
||||
{
|
||||
|
|
|
|||
|
|
@ -195,7 +195,7 @@ abstract class Table_Data_SQL extends Data_SQL
|
|||
$pk=$this->primary_key;
|
||||
// primary cannot be null or empty
|
||||
if (trim($this->$pk??"")==="" || $this->$pk===null) {
|
||||
$this->pk=-1;
|
||||
$this->$pk=-1;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue