mirror of https://github.com/itflow-org/itflow
Fix Bad column count error upon importing passwords via CSV
This commit is contained in:
parent
6d1420712d
commit
3c8c173427
|
|
@ -141,7 +141,7 @@ if(isset($_POST["import_client_logins_csv"])){
|
|||
//(Else)Check column count
|
||||
$f = fopen($file_name, "r");
|
||||
$f_columns = fgetcsv($f, 1000, ",");
|
||||
if(!$error & count($f_columns) != 4) {
|
||||
if(!$error & count($f_columns) != 5) {
|
||||
$error = true;
|
||||
$_SESSION['alert_message'] = "Bad column count.";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue