initialize objects
authorPetr Skoda <skodak@moodle.org>
Sat, 18 Sep 2010 11:32:56 +0000 (11:32 +0000)
committerPetr Skoda <skodak@moodle.org>
Sat, 18 Sep 2010 11:32:56 +0000 (11:32 +0000)
lib/gdlib.php

index 147f26b..d09c99e 100644 (file)
@@ -112,6 +112,7 @@ function process_new_icon($context, $component, $filearea, $itemid, $originalfil
         return false;
     }
 
+    $image = new object();
     $image->width  = $imageinfo[0];
     $image->height = $imageinfo[1];
     $image->type   = $imageinfo[2];