diff --git a/modules/metarefresh/lib/MetaLoader.php b/modules/metarefresh/lib/MetaLoader.php
index 767f300f93026f8d36a02c82e8ac6f9e311f19f3..e62efd1d4b288f99075ec8894343a65bad7f9876 100644
--- a/modules/metarefresh/lib/MetaLoader.php
+++ b/modules/metarefresh/lib/MetaLoader.php
@@ -245,6 +245,7 @@ class sspmod_metarefresh_MetaLoader {
 				if (!array_key_exists('expire', $metadata)) {
 					SimpleSAML_Logger::warning('metarefresh: Metadata entry without expire timestamp: ' . var_export($entityId, TRUE) . 
 						' in set ' . var_export($set, TRUE) . '.');
+					continue;
 				}
 				if ($metadata['expire'] > $ct) {
 					continue;