"MDL-14129, fix print_error"

This commit is contained in:
dongsheng
2008-06-15 12:02:43 +00:00
parent fd9f6cd330
commit bd8ee7c1c4
11 changed files with 23 additions and 26 deletions
+2 -1
View File
@@ -96,7 +96,8 @@ if (empty($iid)) {
unset($content);
if ($readcount === false) {
print_error($cir->get_error(), '', $returnurl);
//TODO: need more detailed error info
print_error('csvloaderror', '', $returnurl);
} else if ($readcount == 0) {
print_error('csvemptyfile', 'error', $returnurl);
}