Browse Source

Photo model. Small fix to `update()`

pass `$old_fields` param to `DBA::update()`
pull/6482/head
fabrixxm 3 years ago
committed by Hypolite Petovan
parent
commit
15b0a7a4d8
  1. 3
      src/Model/Photo.php

3
src/Model/Photo.php

@ -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);
}
/**

Loading…
Cancel
Save