From 9f232fde17936e584bee1057eac158a9c424d3b0 Mon Sep 17 00:00:00 2001 From: Stepan Strelets Date: Thu, 16 Mar 2017 18:52:10 +0300 Subject: [PATCH] Fix bin config value check --- src/PHPCensor/Plugin/Mage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PHPCensor/Plugin/Mage.php b/src/PHPCensor/Plugin/Mage.php index c482973c..483c9d74 100644 --- a/src/PHPCensor/Plugin/Mage.php +++ b/src/PHPCensor/Plugin/Mage.php @@ -35,7 +35,7 @@ class Mage extends \PHPCensor\Plugin parent::__construct($builder, $build, $options); $config = $builder->getSystemConfig('mage'); - if (isset($config['bin'])) { + if (!empty($config['bin'])) { $this->mage_bin = $config['bin']; }