From 5936fa5930ef4a86115f74ac9586c7251c8b9e71 Mon Sep 17 00:00:00 2001 From: mark_story Date: Thu, 29 Dec 2011 11:10:25 -0500 Subject: [PATCH] Fix strict errors. --- lib/Cake/Utility/ObjectCollection.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Cake/Utility/ObjectCollection.php b/lib/Cake/Utility/ObjectCollection.php index 539de1928..79fff9b8f 100644 --- a/lib/Cake/Utility/ObjectCollection.php +++ b/lib/Cake/Utility/ObjectCollection.php @@ -109,7 +109,8 @@ abstract class ObjectCollection { $options[$opt] = $event->{$opt}; } } - $callback = array_pop(explode('.', $event->name())); + $parts = explode('.', $event->name()); + $callback = array_pop($parts); } $options = array_merge( array(