diff --git a/Helper/Data.php b/Helper/Data.php index d85b5fc..042a961 100755 --- a/Helper/Data.php +++ b/Helper/Data.php @@ -104,7 +104,7 @@ public function getAllowedIps($separator=false) { $allowedIps = $this->getConfig('dev/quickdevbar/allow_ips'); if($allowedIps) { - $allowedIps = preg_split('#\s*,\s*#', $allowedIps, null, PREG_SPLIT_NO_EMPTY); + $allowedIps = preg_split('#\s*,\s*#', $allowedIps, -1, PREG_SPLIT_NO_EMPTY); } else { $allowedIps = array(); } diff --git a/README.md b/README.md index c10e217..f264797 100644 --- a/README.md +++ b/README.md @@ -88,10 +88,10 @@ php bin/magento cache:flush The toolbar is displayed by default if your web server is on your local development environment. -The configuration is in Stores/Configuration/Advanced/Developer/Quick dev bar configuration -![](doc/images/qdb_screen_config_ok.png) +The configuration is in Stores/Configuration/Advanced/Developer/Quick dev bar configuration. -If you do not see the toolbar you should either force activation by setting the select "Activate" to "Yes" or fill your IP in the field "Allowed IPs" or fill a matching pattern of you user-agent in the field "Allowed user-agent pattern" + +If you do not see the toolbar you should either force activation by filling your IP in the field "Allowed IPs" and fill a matching pattern of you user-agent in the field "Allowed user-agent pattern" if it's needed. ![](doc/images/qdb_screen_config_ko.png) # Documentation diff --git a/doc/images/qdb_screen_config_ok.png b/doc/images/qdb_screen_config_ok.png deleted file mode 100644 index 2ed5a39..0000000 Binary files a/doc/images/qdb_screen_config_ok.png and /dev/null differ