Browse Source

[mailjet] Suppression des espaces vides au début et à la fin des clés d'api Mailjet

dev
Guillaume Bourgeois 5 years ago
parent
commit
cef453b8d2
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      common/models/Producer.php

+ 3
- 2
common/models/Producer.php View File

$apiKeysArray = explode(':', $apiKeys) ; $apiKeysArray = explode(':', $apiKeys) ;
if(count($apiKeysArray) == 2) { if(count($apiKeysArray) == 2) {
if($type == 'private') { if($type == 'private') {
return $apiKeysArray[1] ;
$key = $apiKeysArray[1] ;
} }
else { else {
return $apiKeysArray[0] ;
$key = $apiKeysArray[0] ;
} }
return trim($key) ;
} }
} }
} }

Loading…
Cancel
Save