seboettg / citeproc-php

Full-featured CSL 1.0.1 processor for PHP
MIT License
75 stars 39 forks source link

No verification for existing of "author" property in Util/NameHelper.php on line 29 #59

Closed artbovboosta closed 5 years ago

artbovboosta commented 5 years ago

Please follow the general troubleshooting steps first:

Bug reports:

Using specified below CSL stylesheet and CSL metadata I got following error notices: image

There are no verification for existing of "author" property. Can you fix this, please?

Used CSL stylesheet:

modern-language-association

Used CSL metadata

Please replace these lines with your used metadata, for instance:

[ { "type": "book", "accessed": { "date-parts": [ [ "2016", "01", "01" ] ] }, "publisher": "lol2", "title": "lol" }, { "type": "book", "author": [ { "given": "Daniel", "suffix": "H.", "family": "Nexon" }, { "given": "Iver", "suffix": "B.", "family": "Neumann" } ], "accessed": { "date-parts": [ [ "2006", "01", "01" ] ] }, "publisher": "Rowman & Littlefield", "title": "Harry Potter and International Relations" } ]

seboettg commented 5 years ago

Thank you for this report! In release 2.1.6 this issue should be solved.

seboettg commented 5 years ago

please reopen this issue, if the issue reappears.