We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88cb636 commit b1a0b56Copy full SHA for b1a0b56
src/Record.php
@@ -189,12 +189,12 @@ public function getTitle()
189
*/
190
public function getSubjects($vocabulary = null, $tag = null)
191
{
192
- return array_filter(Subject::get($this), function (Subject $field) use ($vocabulary, $tag) {
+ return array_values(array_filter(Subject::get($this), function (Subject $field) use ($vocabulary, $tag) {
193
$a = is_null($vocabulary) || $vocabulary == $field->vocabulary;
194
$b = is_null($tag) || $tag == $field->type;
195
196
return $a && $b;
197
- });
+ }));
198
}
199
200
/*************************************************************************
0 commit comments