Skip to content
Snippets Groups Projects
Commit c8d48e2d authored by Moshe Weitzman's avatar Moshe Weitzman
Browse files

Fix #356. Fix TypeError on PHP8.

parent f3aa3bad
Branches
Tags
No related merge requests found
...@@ -374,7 +374,7 @@ class TermDevelGenerate extends DevelGenerateBase implements ContainerFactoryPlu ...@@ -374,7 +374,7 @@ class TermDevelGenerate extends DevelGenerateBase implements ContainerFactoryPlu
$info['terms']++; $info['terms']++;
@$info[$vid][$depth]['total']++; @$info[$vid][$depth]['total']++;
// List only the first 10 new terms at each vocab/level. // List only the first 10 new terms at each vocab/level.
if (@count($info[$vid][$depth]['terms']) < 10) { if (!isset($info[$vid][$depth]['terms']) || count($info[$vid][$depth]['terms']) < 10) {
$info[$vid][$depth]['terms'][] = $term->label(); $info[$vid][$depth]['terms'][] = $term->label();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment