]> git.mjollnir.org Git - moodle.git/commitdiff
weblib: print_user_picture() fix typoed classname when faking user object
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:55:29 +0000 (07:55 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:55:29 +0000 (07:55 +0000)
lib/weblib.php

index f42d9f9c8e15007a2943295fec5000ccddf8b640..6d32b520b981adf2a7f972ee0813c46df484432f 100644 (file)
@@ -3737,7 +3737,7 @@ function print_user_picture($user, $courseid, $picture=NULL, $size=0, $return=fa
             // we need firstname, lastname, imagealt, can't escape...
             $needrec = true;
         } else {
-            $userobj = new StdObj; // fake it to save DB traffic
+            $userobj = new StdClass; // fake it to save DB traffic
             $userobj->id = $user;
             $userobj->picture = $picture;
             $user = $userobj;