Skip to content

Commit

Permalink
MDL-18644 Bugs found by syntax checker, merged from MOODLE_19_STABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
mudrd8mz committed Mar 23, 2009
1 parent 081a9b0 commit 0cd2553
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions question/format/blackboard_six/format.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ function check_and_create_import_dir($unique_code) {
function clean_temp_dir($dir='') {
// for now we will just say everything happened okay note
// that a mess may be piling up in $CFG->dataroot/temp/bbquiz_import
// TODO return true at top of the function renders all the following code useless
return true;

if ($dir == '') {
Expand Down Expand Up @@ -158,10 +159,10 @@ function readdata($filename) {
$ext = substr($this->realfilename, strpos($this->realfilename,'.'), strlen($this->realfilename)-1);
if ($ext=='.dat') {
if (!is_readable($filename)) {
print_error('filenotreadable', 'error');
}
print_error('filenotreadable', 'error');
}
return file($filename);
}
}

$unique_code = time();
$temp_dir = $CFG->dataroot."/temp/bbquiz_import/".$unique_code;
Expand All @@ -184,7 +185,6 @@ function readdata($filename) {
} else {
return $filearray;
}
return false;
}
}
else {
Expand Down

0 comments on commit 0cd2553

Please sign in to comment.