@@ -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) ; | |||
} | |||
} | |||
} |