Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A new platform/publisher on first "run now". missing default value for "lastImportDate" #27

Open
stjohn9 opened this issue Sep 24, 2015 · 0 comments
Labels

Comments

@stjohn9
Copy link
Contributor

stjohn9 commented Sep 24, 2015

When adding a new publisher/platform, on the first go of "run now", the:
usage/admin/classes/domain/SushiService.php
gives an warning on line 235:
"Warning: date_add() expects parameter 1 to be DateTime, boolean given"
235: date_add($lastImportDate, date_interval_create_from_date_string('1 month'));

The problem is related to the $lastImportDate, which is assigned its value by SQL:
233: $lastImportDate = $this->getPublisherOrPlatform->getLastImportDate();

However, as there is no last import date, being it's first run, the query returns NULL. Perhaps there is a default value which can be loaded if the last import date isNull?

@jeffnm jeffnm added the bug label Dec 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants