Browse Source

Merge pull request #606 from statonlab/605-tv3-fix_undefined_var

Fix php notice when creating an entity
Stephen Ficklin 6 years ago
parent
commit
e52d126ffa
1 changed files with 1 additions and 1 deletions
  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 = $create_date;
         $invocation = 'entity_insert';
       }
       else {