Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…to MOODLE_21_STABLE
  • Loading branch information...
commit bc1f0e0b405ffc75a96a67b11e429a41c1d34ead 2 parents 97f8f66 + e8a2fa8
@samhemelryk samhemelryk authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 grade/import/csv/index.php
View
4 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));
Please sign in to comment.
Something went wrong with that request. Please try again.