From 1bb2b3f8572c087b20ef5649fa1463a35374521f Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 14 Mar 2008 16:26:26 +0000 Subject: Adding a couple of extra functions, deleting the old users module git-svn-id: https://code.elgg.org/elgg/trunk@224 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/objects.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'engine/lib/objects.php') diff --git a/engine/lib/objects.php b/engine/lib/objects.php index 900ea3f81..269cd607c 100644 --- a/engine/lib/objects.php +++ b/engine/lib/objects.php @@ -191,18 +191,16 @@ * Call create_entity first. * * @param int $guid - * @param string $name + * @param string $title * @param string $description - * @param string $url */ - function create_object_entity($guid, $name, $description, $url) + function create_object_entity($guid, $title, $description) { global $CONFIG; $guid = (int)$guid; - $name = sanitise_string($name); + $title = sanitise_string($title); $description = sanitise_string($description); - $url = sanitise_string($url); $row = get_entity_as_row($guid); @@ -214,7 +212,7 @@ delete_object_entity($guid); // Insert it - $result = insert_data("INSERT into {$CONFIG->dbprefix}objects_entity (guid, name, description, url) values ($guid, '$name','$description','$url')"); + $result = insert_data("INSERT into {$CONFIG->dbprefix}objects_entity (guid, title, description) values ($guid, '$title','$description')"); if ($result!==false) return true; } -- cgit v1.2.3