]> git.mjollnir.org Git - moodle.git/commit
mod/chat - use empty value instead of erroring out if $USER->lastIP and getremoteaddr...
authormartinlanghoff <martinlanghoff>
Wed, 19 Apr 2006 21:22:36 +0000 (21:22 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Apr 2006 21:22:36 +0000 (21:22 +0000)
commitf83edcb114fa2b6ac1313d5c6327bb1255c2783e
tree19215f5330b7c6f3d91dc0d1c8fe8ce86a56078e
parentef4582212282f70b716d227d5a5be8a003300ce3
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