Skip to content
Browse files

MDL-15469 adding fclose before write to already open file

  • Loading branch information...
1 parent 8cfc7e4 commit e690e668ba185445fc79a68a48ca42ed65eba9ef skodak committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/setup.php
View
1 lib/setup.php
@@ -161,6 +161,7 @@
if (file_exists($CFG->dataroot.'/emailcount')){
$fp = fopen($CFG->dataroot.'/emailcount', 'r');
$content = fread($fp, 24);
+ fclose($fp);
if((time() - (int)$content) > 600){
mail($CFG->emailconnectionerrorsto,
'WARNING: Database connection error: '.$CFG->wwwroot,

0 comments on commit e690e66

Please sign in to comment.
Something went wrong with that request. Please try again.