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

@@ -496,11 +496,12 @@ class Producer extends ActiveRecordCommon
$apiKeysArray = explode(':', $apiKeys) ;
if(count($apiKeysArray) == 2) {
if($type == 'private') {
return $apiKeysArray[1] ;
$key = $apiKeysArray[1] ;
}
else {
return $apiKeysArray[0] ;
$key = $apiKeysArray[0] ;
}
return trim($key) ;
}
}
}

Loading…
Cancel
Save