[AnonymousFave][DATABASE] Set the created timestamp on INSERT
This commit is contained in:
parent
fe3e33e702
commit
a06b33be66
|
@ -148,6 +148,7 @@ class Fave_tally extends Managed_DataObject
|
||||||
$tally = new Fave_tally();
|
$tally = new Fave_tally();
|
||||||
$tally->notice_id = $noticeID;
|
$tally->notice_id = $noticeID;
|
||||||
$tally->count = Fave_tally::countExistingFaves($noticeID);
|
$tally->count = Fave_tally::countExistingFaves($noticeID);
|
||||||
|
$tally->created = common_sql_now();
|
||||||
$result = $tally->insert();
|
$result = $tally->insert();
|
||||||
if (!$result) {
|
if (!$result) {
|
||||||
$msg = sprintf(
|
$msg = sprintf(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user