diff options
-rw-r--r-- | engine/lib/system_log.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engine/lib/system_log.php b/engine/lib/system_log.php index 21e119b7c..61b386353 100644 --- a/engine/lib/system_log.php +++ b/engine/lib/system_log.php @@ -128,7 +128,12 @@ function get_object_from_log_entry($entry_id) { if ($entry) { $class = $entry->object_class; - $object = new $class($entry->object_id); + // surround with try/catch because object could be disabled + try { + $object = new $class($entry->object_id); + } catch (Exception $e) { + + } if ($object) { return $object; } |