From bdc0876fa86e29ee439e69024f6f476c49886b99 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 22 Dec 2008 06:50:20 +0000 Subject: Add messaging system for reporting actions back to the user. Make module install/uninstall work and tie it into the messaging system. --- core/helpers/log.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'core/helpers/log.php') diff --git a/core/helpers/log.php b/core/helpers/log.php index a5a0a079..43e2b8f8 100644 --- a/core/helpers/log.php +++ b/core/helpers/log.php @@ -39,7 +39,9 @@ class log_Core { $log->url = url::abs_current(true); $log->referer = request::referrer(null); $log->timestamp = time(); - $log->user_id = user::active()->id; + if (module::is_installed("user")) { + $log->user_id = user::active()->id; + } $log->save(); } } -- cgit v1.2.3