浏览代码

Fix php notice when creating an entity

Abdullah Almsaeed 6 年之前
父节点
当前提交
57a0ae85cf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tripal/includes/TripalEntityController.inc

+ 1 - 1
tripal/includes/TripalEntityController.inc

@@ -394,7 +394,7 @@ class TripalEntityController extends EntityAPIController {
       // If our entity has no id, then we need to give it a
       // time of creation.
       if (empty($entity->id)) {
-        $entity->created = $created_date;
+        $entity->created = time();
         $invocation = 'entity_insert';
       }
       else {