Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix non-countable error when importing CSV #10285

Open
wants to merge 1 commit into
base: hotfix
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/Import/views/ImportListView.php
Expand Up @@ -128,7 +128,7 @@ public function display($return = false)
$this->ss->assign('navStrings', $navStrings);
$this->ss->assign('pageData', $this->generatePaginationData());
$this->ss->assign('tableID', $this->tableID);
$this->ss->assign('colCount', count($this->headerColumns));
$this->ss->assign('colCount', is_countable($this->headerColumns) ? count($this->headerColumns) : 0);
$this->ss->assign('APP', $app_strings);
$this->ss->assign('rowColor', array('oddListRow', 'evenListRow'));
$this->ss->assign('displayColumns', $this->headerColumns);
Expand Down