Skip to content

Commit

Permalink
Dev Fixed issue where empty was called on an expression (that's not v…
Browse files Browse the repository at this point in the history
…alid for PHP < 5.5)
  • Loading branch information
SamMousa committed Feb 24, 2015
1 parent 64497b5 commit ca3ebc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/libraries/PluginManager/PluginManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class PluginManager extends \CApplicationComponent{
public function init() {
PluginConfig::$pluginManager = $this;
$this->loadPlugins();
if (empty($this->getAuthenticators(true)) && $reload = true && null === $this->enablePlugin('ls_core_plugins_AuthDb')) {
if (count($this->getAuthenticators(true)) == 0 && $reload = true && null === $this->enablePlugin('ls_core_plugins_AuthDb')) {
throw new \Exception("No authentication plugins available.");
};
if ($this->getAuthorizer() == null && $reload = true && null === $this->enablePlugin('ls_core_plugins_PermissionDb')) {
Expand Down

0 comments on commit ca3ebc5

Please sign in to comment.