Index: branches/stable/phase3/includes/GlobalFunctions.php |
— | — | @@ -409,7 +409,7 @@ |
410 | 410 | if ( 0 == wfNumRows( $res ) ) { |
411 | 411 | $sql = "INSERT INTO image (img_name,img_size,img_timestamp," . |
412 | 412 | "img_description,img_user,img_user_text) VALUES ('" . |
413 | | - wfStrencode( $name ) . "',{$size},'{$now}','" . |
| 413 | + wfStrencode( $name ) . "'," . (int)$size . ",{$now}','" . |
414 | 414 | wfStrencode( $desc ) . "', '" . $wgUser->getID() . |
415 | 415 | "', '" . wfStrencode( $wgUser->getName() ) . "')"; |
416 | 416 | wfQuery( $sql, $fname ); |