1 |
Compatibility patch for phpMyAdmin 4.4.x; "Warning in ./libraries/plugin_interface.lib.php#533 |
2 |
count(): Parameter must be an array or an object that implements Countable" is raised with PHP 7. |
3 |
|
4 |
--- phpMyAdmin-4.4.15.10/libraries/plugin_interface.lib.php 2017-01-23 20:08:47.000000000 +0100 |
5 |
+++ phpMyAdmin-4.4.15.10/libraries/plugin_interface.lib.php 2018-05-16 13:37:36.000000000 +0200 |
6 |
@@ -529,7 +529,7 @@ |
7 |
$ret .= '<h3>' . PMA_getString($text) . '</h3>'; |
8 |
|
9 |
$no_options = true; |
10 |
- if ($options != null && count($options) > 0) { |
11 |
+ if ($options != null && count((array)$options) > 0) { |
12 |
foreach ($options->getProperties() |
13 |
as $propertyMainGroup |
14 |
) { |