aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-13 16:45:53 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-13 16:45:53 +0000
commit084666341d6b20906dbce2e38db89e4113d046bb (patch)
tree002dede5823bf6395dae25ee8b6ac120b1966f75 /engine/lib
parent15901ae3d95261f66ca3ac0b6fb1d0d641d5569d (diff)
downloadelgg-084666341d6b20906dbce2e38db89e4113d046bb.tar.gz
elgg-084666341d6b20906dbce2e38db89e4113d046bb.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Owner ID detected if not specified. git-svn-id: https://code.elgg.org/elgg/trunk@211 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-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();