[-] BO : status image was not saved #PSCFV-3654

This commit is contained in:
dMetzger
2012-08-17 12:42:29 +00:00
parent 6b5abfa1d3
commit d8a453edbc
2 changed files with 9 additions and 8 deletions

View File

@@ -450,7 +450,8 @@ abstract class ObjectModelCore
$this->date_upd = date('Y-m-d H:i:s');
// Database insertion
unset($this->id);
if (isset($this->id))
unset($this->id);
if (!$result = ObjectModel::$db->insert($this->def['table'], $this->getFields(), $null_values))
return false;