aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/entities.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-01 14:20:55 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-01 14:20:55 +0000
commit9391179df8ba6ed1595de7de533f633d99d57b35 (patch)
treee2ddcf5ac254a5a37a6722e9e7eeb8f2fc67367b /engine/lib/entities.php
parentb1486d73ab4996931afa0d37fa9e5d09a4a88765 (diff)
downloadelgg-9391179df8ba6ed1595de7de533f633d99d57b35.tar.gz
elgg-9391179df8ba6ed1595de7de533f633d99d57b35.tar.bz2
User registration gubbins
git-svn-id: https://code.elgg.org/elgg/trunk@308 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r--engine/lib/entities.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index fb161bbd1..66f421a6d 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -488,8 +488,10 @@
$access_id = (int)$access_id;
$time = time();
- if ($type=="") throw new InvalidParameterException("Entity type must be set.");
- if ($owner_guid==0) throw new InvalidParameterException("owner_guid must not be 0");
+ if ($type=="") throw new InvalidParameterException("Entity type must be set.");
+
+ // Erased by Ben: sometimes we need unauthenticated users to create things! (eg users on registration)
+ // if ($owner_guid==0) throw new InvalidParameterException("owner_guid must not be 0");
return insert_data("INSERT into {$CONFIG->dbprefix}entities (type, subtype, owner_guid, access_id, time_created, time_updated) values ('$type',$subtype, $owner_guid, $access_id, $time, $time)");
}