From 739f52e2d9e9c7b874efccdbb334e19c1905271f Mon Sep 17 00:00:00 2001 From: icewing Date: Mon, 17 Mar 2008 15:56:05 +0000 Subject: Marcus Povey * BUGFIX: Added config git-svn-id: https://code.elgg.org/elgg/trunk@236 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/entities.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engine/lib') diff --git a/engine/lib/entities.php b/engine/lib/entities.php index ca3f795f3..d42dbfd5f 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -432,6 +432,8 @@ */ function get_entities($type = "", $subtype = "", $owner_guid = 0, $order_by = "time_created desc", $limit = 10, $offset = 0) { + global $CONFIG; + $type = sanitise_string($type); $subtype = get_subtype_id($subtype); $owner_guid = (int)$owner_guid; @@ -474,6 +476,8 @@ */ function get_entities_from_relationship($relationship, $relationship_guid, $inverse_relationship = false, $type = "", $subtype = "", $owner_guid = 0, $order_by = "time_created desc", $limit = 10, $offset = 0) { + global $CONFIG; + $relationship = sanitise_string($relationship); $relationship_guid = (int)$relationship_guid; $inverse_relationship = (bool)$inverse_relationship; -- cgit v1.2.3