Skip to content

Commit

Permalink
Fix setting of initial config
Browse files Browse the repository at this point in the history
  • Loading branch information
frankkessler committed Feb 26, 2016
1 parent 7692e09 commit 1bb7ff9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/SalesforceConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ public static function setInitialConfig($config=[])
{
if(!self::$config) {
self::$config = self::getInitialConfig();
if ($config && !empty($config && is_array($config))) {
self::$config = array_replace(self::$config, $config);
}
}

if ($config && !empty($config) && is_array($config)) {
self::$config = array_replace(self::$config, $config);
}
}

Expand Down

0 comments on commit 1bb7ff9

Please sign in to comment.