From: moodler Date: Mon, 26 May 2003 07:54:53 +0000 (+0000) Subject: More robust check of argument X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8d2accb64c4693d6067a98028d2f7c02f1167b2f;p=moodle.git More robust check of argument --- diff --git a/lib/weblib.php b/lib/weblib.php index 2ad2651fbb..ac2130b9f8 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -726,7 +726,7 @@ function print_footer ($course=NULL) { function user_login_string($course, $user=NULL) { global $USER, $CFG; - if (!$user) { + if (empty($user)) { $user = $USER; }