Commit: b6fb4fb4971d02177ee55ad593e0c40b442c2ba1
Author: alkemann | Date: 2009-11-17 06:00:23 +0100
diff --git a/models/Paste.php b/models/Paste.php
index 677813b..56a3c34 100644
--- a/models/Paste.php
+++ b/models/Paste.php
@@ -94,7 +94,8 @@ class Paste extends \lithium\data\Model {
*/
public static function create($data = array()) {
$data += static::$_defaults;
- $data['created'] = date('Y-m-d h:m:s');
+ if (!isset($data['created']))
+ $data['created'] = date('Y-m-d h:m:s');
return parent::create($data);
}