MDL-18325 one more pgl fix - thanks Richard Mansfield

This commit is contained in:
skodak
2009-04-27 06:34:04 +00:00
parent e11bdd6ac7
commit e30fdc6c94
+1 -1
View File
@@ -205,7 +205,7 @@ if ($handle = fopen($imported_file['userfile']['tmp_name'], 'r')) {
}
break;
// new outcome will be added, search for compatible existing scale...
$scale = get_records_select('scale', 'name ="'. $csv_data[$imported_headers['scale_name']] .'" and scale ="'. $csv_data[$imported_headers['scale_items']] .'" and (courseid = '. $courseid .' or courseid = 0)');
$scale = get_records_select('scale', 'name =\''. $csv_data[$imported_headers['scale_name']] .'\' and scale =\''. $csv_data[$imported_headers['scale_items']] .'\' and (courseid = '. $courseid .' or courseid = 0)');
if ($scale) {
// already exists in the right scope: use it.