Populate 'created' property on attention

The 'created' column in attention SQL table has NOT NULL
restriction.
This commit is contained in:
Chimo 2015-02-08 14:47:03 -05:00
parent 1c478768ad
commit e02bd34d26
1 changed files with 1 additions and 0 deletions

View File

@ -56,6 +56,7 @@ class Attention extends Managed_DataObject
$att->notice_id = $notice->getID();
$att->profile_id = $profile->getID();
$att->reason = $reason;
$att->created = common_sql_now();
$result = $att->insert();
if ($result === false) {