diff --git a/BackdropBoot.php b/BackdropBoot.php index 40e8ee9..014e26c 100644 --- a/BackdropBoot.php +++ b/BackdropBoot.php @@ -615,7 +615,7 @@ function commandfile_searchpaths($phase, $phase_max = FALSE) { // @codingStandardsIgnoreLine protected function module_list() { $enabled = array(); - $rsc = drush_db_select('system', 'name', 'type=:type AND status=:status', array(':type' => 'module', ':status' => 1)); + $rsc = drush_db_select('system', 'name', "type='module' AND status=1", array()); while ($row = drush_db_result($rsc)) { $enabled[$row] = $row; } diff --git a/includes/environment.inc b/includes/environment.inc index c694b2f..9ee6a21 100644 --- a/includes/environment.inc +++ b/includes/environment.inc @@ -126,7 +126,7 @@ function drush_module_dependents($modules, $module_info) { */ function drush_module_list() { $enabled = array(); - $rsc = drush_db_select('system', 'name', 'type = \'module\' AND status = 1', []); + $rsc = drush_db_select('system', 'name', 'type = \'module\' AND status = 1', array()); while ($row = drush_db_result($rsc)) { $enabled[$row] = $row; } @@ -141,7 +141,7 @@ function drush_module_list() { */ function drush_get_named_extensions_list($extensions) { $result = array(); - $rsc = drush_db_select('system', array('name', 'status'), 'name IN (\'' . implode("', '", $extensions) . '\')', []); + $rsc = drush_db_select('system', array('name', 'status'), 'name IN (\'' . implode("', '", $extensions) . '\')', array()); while ($row = drush_db_fetch_object($rsc)) { $result[$row->name] = $row; }