Fix for PHP7 & Mysql 5.7

- added default values to not null columns
- fixed passing by reference issue on MailChimp->getDataCenter
- fixed a couple unit tests
This commit is contained in:
Jonathan Labreuille
2016-05-16 14:50:43 +02:00
parent 395e95bc54
commit 607a151c23
4 changed files with 25 additions and 14 deletions

View File

@ -121,7 +121,8 @@ class MailChimp {
function getDataCenter($APIKey) {
if (!preg_match('/-[a-zA-Z0-9]{3,}/', $APIKey)) return false;
// double parantheses: http://phpsadness.com/sad/51
return end((explode('-', $APIKey)));
$key_parts = explode('-', $APIKey);
return end($key_parts);
}
function getAPIKey($APIKey) {