aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/entities.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index fd0c81593..0c60f209b 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -362,7 +362,7 @@
$type = sanitise_string($type);
$subtype = get_subtype_id($subtype);
- $owner_guid = (int)$owner_guid;
+ $owner_guid = (int)$owner_guid; if (!$owner_guid) $owner_guid = $_SESSION['id'];
$access_id = (int)$access_id;
$time = time();