Photo model. Small fix to update()

pass `$old_fields` param to `DBA::update()`
This commit is contained in:
fabrixxm 2019-01-02 16:18:40 +01:00 committed by Hypolite Petovan
parent b7b3086263
commit 15b0a7a4d8

View File

@ -306,6 +306,7 @@ class Photo extends BaseObject
return $r;
}
/**
* @brief Delete info from table and data from storage
*
@ -362,7 +363,7 @@ class Photo extends BaseObject
$fields['edited'] = DateTimeFormat::utcNow();
return DBA::update("photo", $fields, $conditions);
return DBA::update("photo", $fields, $conditions, $old_fields);
}
/**