From 59ff4221f615af6d3ef8caa0a30210d479f2b1d8 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Fri, 22 May 2015 14:01:11 +0200 Subject: [PATCH] CommandTransport: Make sure to reset the config before calling current() --- .../Monitoring/Command/Transport/CommandTransport.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/monitoring/library/Monitoring/Command/Transport/CommandTransport.php b/modules/monitoring/library/Monitoring/Command/Transport/CommandTransport.php index a9839565b..f39b0b4c3 100644 --- a/modules/monitoring/library/Monitoring/Command/Transport/CommandTransport.php +++ b/modules/monitoring/library/Monitoring/Command/Transport/CommandTransport.php @@ -108,7 +108,8 @@ abstract class CommandTransport */ public static function first() { - $config = self::getConfig()->current(); - return self::fromConfig($config); + $config = self::getConfig(); + $config->rewind(); + return self::fromConfig($config->current()); } }