Enhance build

This commit is contained in:
Romain Neutron
2012-04-28 01:51:27 +02:00
parent c6b6e321f5
commit 887cbe4848
5 changed files with 6 additions and 5 deletions

View File

@@ -154,7 +154,7 @@ class random
':token' => $token
, ':type' => $type
, ':usr' => ($usr ? $usr : '-1')
, ':end_date' => ($end_date instanceof DateTime ? phraseadate::format_mysql($end_date) : null)
, ':end_date' => ($end_date instanceof DateTime ? $end_date->format(DATE_ISO8601) : null)
, ':datas' => ((trim($datas) != '') ? $datas : null)
);
$stmt->execute($params);