I've noticed a minor error with one of my themes after I turned the debugging info on. I'm running moodle 1.8+. I wanted to print out the login string in a specific place in the header without all the other headermenu info which is printed elsewhere (of which I hide the login info).
For looking through the forums, I found that I could write:
<?php echo user_login_string($usercourse, $USER) ?>However, which the debugging info on, I get the following notice:
Notice : Undefined variable: usercourse in E:\moodle18plus\moodle\theme\testing_only\header.html on line 38
My question is, what should I be using instead or should I even care (it's only a notice after all).
Thanks,
Stuart.