Changeset 9237 e67cd85fd2d8 from dokeos

skala
Julio Montoya 16 years ago
parent 0d80ebf42a
commit c31c3db1b3
  1. 9
      main/inc/lib/import.lib.php

@ -3,7 +3,6 @@
/*
==============================================================================
Dokeos - elearning and course management software
Copyright (c) 2004,2005 Dokeos S.A.
Copyright (c) Bart Mollet, Hogeschool Gent
@ -57,10 +56,12 @@ class Import
$row = array ();
//avoid empty lines in csv
if (is_array($row_tmp) && count($row_tmp)>0 && $row_tmp[0]!= '') {
foreach ($row_tmp as $index => $value) {
$row[$keys[$index]] = $value;
if (!is_null($row_tmp[0])) {
foreach ($row_tmp as $index => $value) {
$row[$keys[$index]] = $value;
}
$result[] = $row;
}
$result[] = $row;
}
}
fclose($handle);

Loading…
Cancel
Save