From 8e4a4cc6f5267d2060cafed7fd2533be29536f80 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Sat, 12 Feb 2011 03:01:55 +0000 Subject: Refs #2610: Using call_user_func in url hooks git-svn-id: http://code.elgg.org/elgg/trunk@8139 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/relationships.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine/lib/relationships.php') diff --git a/engine/lib/relationships.php b/engine/lib/relationships.php index c032ff5b9..0370a1e82 100644 --- a/engine/lib/relationships.php +++ b/engine/lib/relationships.php @@ -432,7 +432,7 @@ function get_relationship_url($id) { } if (is_callable($function)) { - $url = $function($relationship); + $url = call_user_func($function, $relationship); } if ($url == "") { -- cgit v1.2.3