Explorar el Código

fix empty 404 image

jomo hace 10 años
padre
commit
999f2fda37
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      routes/avatars.js

+ 1 - 1
routes/avatars.js

@@ -43,7 +43,7 @@ router.get('/:uuid', function(req, res) {
 
   function handle_404(def) {
     if (def == "alex" || def == "steve") {
-      skins.resize_img("public/images/" + def + ".png", size, function(image) {
+      skins.resize_img("public/images/" + def + ".png", size, function(err, image) {
         sendimage(404, image);
       });
     } else {