summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--includes/expire.api.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/includes/expire.api.inc b/includes/expire.api.inc
index cd4acc6..2d52ae0 100644
--- a/includes/expire.api.inc
+++ b/includes/expire.api.inc
@@ -101,6 +101,12 @@ class ExpireAPI {
// Latest possibility to change urls that should be expired.
drupal_alter('expire_urls', $urls, $object_type, $object);
+ // Probably during alteration all urls were deleted. In this case
+ // we should stop any further expiration.
+ if (empty($urls)) {
+ return;
+ }
+
// Write some debug information.
self::debugLog($urls, $wildcards, $object_type);