]> git.mjollnir.org Git - moodle.git/commitdiff
Merged small notice fix from stable
authormoodler <moodler>
Mon, 5 Mar 2007 04:47:49 +0000 (04:47 +0000)
committermoodler <moodler>
Mon, 5 Mar 2007 04:47:49 +0000 (04:47 +0000)
lib/moodlelib.php

index 240082895f501ec8bff791ccda1eb66b3dfd1ce7..8e9713c68745f813e71778bfb3d68ed3191c1369 100644 (file)
@@ -3276,7 +3276,7 @@ function email_to_user($user, $from, $subject, $messagetext, $messagehtml='', $a
     }
 
     // skip mail to suspended users
-    if ($user->auth=='nologin') {
+    if (isset($user->auth) && $user->auth=='nologin') {
         return true;
     }