From 73239d85272f7850071a017acd12e455cca8e33a Mon Sep 17 00:00:00 2001 From: "Laryn - CEDC.org" Date: Mon, 28 Aug 2017 11:36:16 -0500 Subject: [PATCH] #7: Fix warning about update_last_removed Not 100% sure it's okay to just skip creating the `_update_last_removed` but if there isn't one to remove I guess there isn't something to add? --- conversions/end.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/conversions/end.inc b/conversions/end.inc index be3a66e..7c6854a 100644 --- a/conversions/end.inc +++ b/conversions/end.inc @@ -421,7 +421,9 @@ function coder_upgrade_create_update_last_removed($module_name, &$reader, &$node $ns[$matches[2]] = $node; } } - $last_removed = max(array_keys($ns)); + if ($last_removed != '') { + $last_removed = max(array_keys($ns)); + } } // Set values for the new hook function.