Permalink
Browse files

Merge branch 'MDL-26277-22' of https://github.com/mackensen/moodle in…

…to MOODLE_22_STABLE
  • Loading branch information...
2 parents 092e389 + 900e37b commit 042ae10e1d1ea797d160498e6dbbe566ab981a38 Sam Hemelryk committed Jun 5, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 grade/import/csv/index.php
@@ -126,7 +126,9 @@
fwrite($fp,$text);
fclose($fp);
- $fp = fopen($filename, "r");
+ if (!$fp = fopen($filename, "r")) {
+ print_error('cannotopenfile');
+ }
// --- get header (field names) ---
$header = explode($csv_delimiter, fgets($fp, GRADE_CSV_LINE_LENGTH));

0 comments on commit 042ae10

Please sign in to comment.