aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/entities.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r--engine/lib/entities.php4
1 files changed, 4 insertions, 0 deletions
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;