API: Some cleanup
[lhc/web/wiklou.git] / includes / api / ApiQueryImageInfo.php
index b98d2ad..291a8fe 100644 (file)
@@ -194,8 +194,8 @@ class ApiQueryImageInfo extends ApiQueryBase {
                                if( $mto && !$mto->isError() )
                                {
                                        $vals['thumburl'] = $mto->getUrl();
-                                       $vals['thumbwidth'] = $mto->getWidth();
-                                       $vals['thumbheight'] = $mto->getHeight();
+                                       $vals['thumbwidth'] = intval( $mto->getWidth() );
+                                       $vals['thumbheight'] = intval( $mto->getHeight() );
                                }
                        }
                        $vals['url'] = $file->getFullURL();