BCcampus / pressbooks-openstax-import

[UNMAINTAINED] Pressbooks Plugin for OpenStax Textbook Import
GNU General Public License v3.0
5 stars 0 forks source link

Importing throws PHP notice #64

Closed greatislander closed 6 years ago

greatislander commented 6 years ago

Description

Importing an OpenStax file with WP_DEBUG enabled reveals a PHP notice during the import routine:

Notice: Undefined variable: organizations in pressbooks-openstax-import/inc/import/openstax/class-cnx.php on line 308

https://github.com/BCcampus/pressbooks-openstax-import/blob/dev/inc/import/openstax/class-cnx.php#L308.

Expected behaviour

No PHP notices.

Actual behaviour

Undefined variable.

Steps to reproduce the problem

Import this file: https://cnx.org/exports/9add9912-c6a7-49a5-8c75-cca4187fdb57@1.1.zip/bitcoin-1.1.zip

screen shot 2018-06-28 at 2 47 45 pm

System Information

bdolor commented 6 years ago

resolved via https://github.com/BCcampus/pressbooks-openstax-import/commit/9e45a40038d6deba9f74cd8ac305507a932521cb