Permalink
Browse files

MDL-15469 adding fclose before write to already open file

  • Loading branch information...
skodak
skodak committed Jul 9, 2008
1 parent 8cfc7e4 commit e690e668ba185445fc79a68a48ca42ed65eba9ef
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/setup.php
View
@@ -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.