From b02d14c388c4b5b913ac82639e2d3ba72eb1f255 Mon Sep 17 00:00:00 2001 From: Francesco Zanoni Date: Sun, 5 May 2019 15:40:18 +0200 Subject: [PATCH] fixed issue 'count(): Parameter must be an array or an object that implements Countable' --- library/ZFDebug/Controller/Plugin/Debug/Plugin/Database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/ZFDebug/Controller/Plugin/Debug/Plugin/Database.php b/library/ZFDebug/Controller/Plugin/Debug/Plugin/Database.php index da06e58..4a262bf 100644 --- a/library/ZFDebug/Controller/Plugin/Debug/Plugin/Database.php +++ b/library/ZFDebug/Controller/Plugin/Debug/Plugin/Database.php @@ -50,7 +50,7 @@ class ZFDebug_Controller_Plugin_Debug_Plugin_Database */ public function __construct(array $options = array()) { - if (!isset($options['adapter']) || !count($options['adapter'])) { + if (!isset($options['adapter']) || empty($options['adapter'])) { if (Zend_Db_Table_Abstract::getDefaultAdapter()) { $this->_db[0] = Zend_Db_Table_Abstract::getDefaultAdapter(); if (isset($options['backtrace']) && $options['backtrace']) {