mirror of
https://github.com/itflow-org/itflow
synced 2026-03-16 02:34:50 +00:00
Fix Bad column count error upon importing passwords via CSV
This commit is contained in:
@@ -141,7 +141,7 @@ if(isset($_POST["import_client_logins_csv"])){
|
|||||||
//(Else)Check column count
|
//(Else)Check column count
|
||||||
$f = fopen($file_name, "r");
|
$f = fopen($file_name, "r");
|
||||||
$f_columns = fgetcsv($f, 1000, ",");
|
$f_columns = fgetcsv($f, 1000, ",");
|
||||||
if(!$error & count($f_columns) != 4) {
|
if(!$error & count($f_columns) != 5) {
|
||||||
$error = true;
|
$error = true;
|
||||||
$_SESSION['alert_message'] = "Bad column count.";
|
$_SESSION['alert_message'] = "Bad column count.";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user