Skip to content

Commit

Permalink
Check if function drush_log exists before using it. (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
dharizza authored and janette committed Jul 19, 2019
1 parent 39cce9e commit 4fda12c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion open_data_schema_map.module
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 4fda12c

Please sign in to comment.