From: Chimo Date: Sun, 8 Feb 2015 19:47:03 +0000 (-0500) Subject: Populate 'created' property on attention X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e02bd34d265f2933575a80a06a3cd75c8f9195fd;p=quix0rs-gnu-social.git Populate 'created' property on attention The 'created' column in attention SQL table has NOT NULL restriction. --- diff --git a/classes/Attention.php b/classes/Attention.php index d152ff892a..ef0dcb1df7 100644 --- a/classes/Attention.php +++ b/classes/Attention.php @@ -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) {