Fix some warning during install

This commit is contained in:
Laurent Destailleur 2018-02-24 11:58:09 +01:00
parent 812911bd44
commit 435e4823a5
3 changed files with 5 additions and 3 deletions

View File

@ -4428,7 +4428,7 @@ abstract class CommonObject
} }
else else
{ {
dol_syslog("Warning: fetch_optionals was called with param $optionsArray defined when you should pass null now", LOG_WARNING); dol_syslog("Warning: fetch_optionals was called with param optionsArray defined when you should pass null now", LOG_WARNING);
} }
$table_element = $this->table_element; $table_element = $this->table_element;
@ -4463,7 +4463,7 @@ abstract class CommonObject
if ($key != 'rowid' && $key != 'tms' && $key != 'fk_member' && ! is_int($key)) if ($key != 'rowid' && $key != 'tms' && $key != 'fk_member' && ! is_int($key))
{ {
// we can add this attribute to object // we can add this attribute to object
if (in_array($extrafields->attributes[$this->table_element]['type'][$key], array('date','datetime'))) if (! empty($extrafields) && in_array($extrafields->attributes[$this->table_element]['type'][$key], array('date','datetime')))
{ {
//var_dump($extrafields->attributes[$this->table_element]['type'][$key]); //var_dump($extrafields->attributes[$this->table_element]['type'][$key]);
$this->array_options["options_".$key]=$this->db->jdate($value); $this->array_options["options_".$key]=$this->db->jdate($value);

View File

@ -321,6 +321,8 @@ CREATE TABLE IF NOT EXISTS llx_expensereport_ik (
active integer DEFAULT 1 active integer DEFAULT 1
)ENGINE=innodb; )ENGINE=innodb;
ALTER TABLE llx_expensereport_ik ADD COLUMN ikoffset double DEFAULT 0 NOT NULL;
CREATE TABLE IF NOT EXISTS llx_c_exp_tax_cat ( CREATE TABLE IF NOT EXISTS llx_c_exp_tax_cat (
rowid integer AUTO_INCREMENT PRIMARY KEY, rowid integer AUTO_INCREMENT PRIMARY KEY,
label varchar(48) NOT NULL, label varchar(48) NOT NULL,