diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-12-22 06:50:20 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-22 06:50:20 +0000 |
commit | bdc0876fa86e29ee439e69024f6f476c49886b99 (patch) | |
tree | ee1b629c7b241322f966eaf287549c8c1aefdc1d /core/helpers/log.php | |
parent | f6381c534e92e230349f5633eb280a22421d9050 (diff) |
Add messaging system for reporting actions back to the user. Make
module install/uninstall work and tie it into the messaging system.
Diffstat (limited to 'core/helpers/log.php')
-rw-r--r-- | core/helpers/log.php | 4 |
1 files changed, 3 insertions, 1 deletions
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(); } } |