Commit c8d48e2d authored by moshe weitzman's avatar moshe weitzman
Browse files

Fix #356. Fix TypeError on PHP8.

parent f3aa3bad
......@@ -374,7 +374,7 @@ class TermDevelGenerate extends DevelGenerateBase implements ContainerFactoryPlu
$info['terms']++;
@$info[$vid][$depth]['total']++;
// 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();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment