- Removes space between IF and statement
This commit is contained in:
@@ -17,8 +17,8 @@ class BootStrapMenu {
|
||||
Segment::getSegmentsWithSubscriberCount() :
|
||||
Segment::getSegmentsForExport($with_confirmed_subscribers);
|
||||
return array_map(function($segment) {
|
||||
if (!$segment['name']) $segment['name'] = __('Not In Segment');
|
||||
if (!$segment['id']) $segment['id'] = 0;
|
||||
if(!$segment['name']) $segment['name'] = __('Not In Segment');
|
||||
if(!$segment['id']) $segment['id'] = 0;
|
||||
return array(
|
||||
'id' => $segment['id'],
|
||||
'name' => $segment['name'],
|
||||
|
@@ -119,7 +119,7 @@ class MailChimp {
|
||||
}
|
||||
|
||||
function getDataCenter($APIKey) {
|
||||
if (!preg_match('/-[a-zA-Z0-9]{3,}/', $APIKey)) return false;
|
||||
if(!preg_match('/-[a-zA-Z0-9]{3,}/', $APIKey)) return false;
|
||||
// double parantheses: http://phpsadness.com/sad/51
|
||||
$key_parts = explode('-', $APIKey);
|
||||
return end($key_parts);
|
||||
|
Reference in New Issue
Block a user