Browse Source

Photo model. Small fix to `update()`

pass `$old_fields` param to `DBA::update()`
pull/6482/head
fabrixxm 2 years ago
committed by Hypolite Petovan
parent
commit
15b0a7a4d8
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/Model/Photo.php

+ 2
- 1
src/Model/Photo.php 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);
}
/**


Loading…
Cancel
Save