소스 검색

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 {