MDL-35257 lib: if $CFG->logguests is disabled, avoid some log actions
authorDan Poltawski <dan@moodle.com>
Wed, 5 Sep 2012 02:34:51 +0000 (10:34 +0800)
committerDan Poltawski <dan@moodle.com>
Fri, 7 Sep 2012 02:24:50 +0000 (10:24 +0800)
commitbd916ad1ee0227d8c34a42d9e648d7bdb68730f9
tree00f62e5128c0c89c90d83f00847cd7a1a4fda922
parent71e12dc9630c9463bc2ca13284dd9055b8c891c3
MDL-35257 lib: if $CFG->logguests is disabled, avoid some log actions

This is for performance, else there can be great contention on the guest
user record as we've seen on moodle.org.
lib/datalib.php
lib/moodlelib.php