MDL-43896 admin: Avoid empty(expression), not working under PHP 5.4

This commit is contained in:
Eloy Lafuente (stronk7)
2015-09-02 01:20:09 +02:00
parent 10006e8ff9
commit 17d2a336d1
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -294,7 +294,7 @@ class core_plugin_manager {
include($fullplug.'/version.php');
// Check if the legacy $module syntax is still used.
if (!is_object($module) or (!empty((array)$module))) {
if (!is_object($module) or (count((array)$module) > 0)) {
debugging('Unsupported $module syntax detected in version.php of the '.$type.'_'.$plug.' plugin.');
$skipcache = true;
}