From 82a74194d27972a81ff1dd472ede25a31f3eb6d5 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 8 Jan 2011 18:47:43 +0000 Subject: Fixed problem where system log code would crash due to new plugin code git-svn-id: http://code.elgg.org/elgg/trunk@7865 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/system_log.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/engine/lib/system_log.php b/engine/lib/system_log.php index 5e4a145bb..1578ebeba 100644 --- a/engine/lib/system_log.php +++ b/engine/lib/system_log.php @@ -128,9 +128,7 @@ function get_object_from_log_entry($entry_id) { if ($entry) { $class = $entry->object_class; - $tmp = new $class(); - $object = $tmp->getObjectFromID($entry->object_id); - + $object = new $class($entry->object_id); if ($object) { return $object; } -- cgit v1.2.3