summaryrefslogtreecommitdiff
path: root/includes/entity.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/entity.inc')
-rw-r--r--includes/entity.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/entity.inc b/includes/entity.inc
index ba9175d9a..06334ccee 100644
--- a/includes/entity.inc
+++ b/includes/entity.inc
@@ -68,7 +68,7 @@ class DrupalDefaultEntityController implements DrupalEntityControllerInterface {
$this->idKey = $this->entityInfo['object keys']['id'];
// Check if the entity type supports revisions.
- if (isset($this->entityInfo['object keys']['revision'])) {
+ if (!empty($this->entityInfo['object keys']['revision'])) {
$this->revisionKey = $this->entityInfo['object keys']['revision'];
$this->revisionTable = $this->entityInfo['revision table'];
}