]> git.mjollnir.org Git - moodle.git/commit
mod/chat - fix another instance where empty $USER->lastIP was affecting us
authormartinlanghoff <martinlanghoff>
Tue, 2 May 2006 05:20:35 +0000 (05:20 +0000)
committermartinlanghoff <martinlanghoff>
Tue, 2 May 2006 05:20:35 +0000 (05:20 +0000)
commit274f009184d340c4d7d278ded9f5693f27e5820f
treea2f0d0abf23e1fe647b6db35cdf08cca67cd6aab
parent2cea2a74b4a683ac26a9ed0fb4023e0493e4c17e
mod/chat - fix another instance where empty $USER->lastIP was affecting us

The original commit was:

mod/chat - use empty value instead of erroring out if $USER->lastIP and getremoteaddr() don't yield any interesting value

Sometimes we can't get any useful IP for the user -- and this may even be a
valid situation. So fudge an empty value -- the DB needs it as the IP field
is NOT NULL.
mod/chat/lib.php