From 4fda12c9e0d500f1fa8b151cedff621e2d90be1c Mon Sep 17 00:00:00 2001 From: Dharizza Espinach B Date: Fri, 19 Jul 2019 15:38:56 -0600 Subject: [PATCH] Check if function drush_log exists before using it. (#114) --- open_data_schema_map.module | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/open_data_schema_map.module b/open_data_schema_map.module index 6d056cc..ec2455f 100644 --- a/open_data_schema_map.module +++ b/open_data_schema_map.module @@ -1046,7 +1046,9 @@ function open_data_schema_map_endpoint_process_map($ids, $api) { $count++; $index++; if ($count == 100 || $index == $total) { - drush_log("Processed $index out of $total items", "ok"); + if (function_exists(drush_log)) { + drush_log("Processed $index out of $total items", "ok"); + } $count = 0; } }