From 6db087c5cea9905e66c312f1ec7afe2735fb0d33 Mon Sep 17 00:00:00 2001 From: iamlkeno Date: Mon, 28 Oct 2019 15:26:01 -0300 Subject: [PATCH] Let's use the first value in the array In the islandora_scholar module: `function islandora_scholar_update_7104(&$sandbox) { $module = array('islandora_google_scholar'); if (module_exists($module)) {` https://github.com/Islandora/islandora_scholar/blob/7.x/islandora_scholar.install#L159 Seeing as the module_exists function accepts a string, it yields the following when passed an array: Warning: Illegal offset type in isset or empty in module_exists() (line 280 of /var/www/drupal7/includes/module.inc) --- islandora_scholar.install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/islandora_scholar.install b/islandora_scholar.install index e55149bf..63404e97 100644 --- a/islandora_scholar.install +++ b/islandora_scholar.install @@ -156,7 +156,7 @@ function islandora_scholar_update_7103(&$sandbox) { */ function islandora_scholar_update_7104(&$sandbox) { $module = array('islandora_google_scholar'); - if (module_exists($module)) { + if (module_exists($module[0])) { module_disable($module, FALSE); } db_delete('system')