From 921c2c67abf7afdd7d6d2199a5216fd80dc5ba3f Mon Sep 17 00:00:00 2001 From: mark_story Date: Thu, 13 Sep 2012 20:59:17 -0400 Subject: [PATCH] Fix strict error in 5.4 --- lib/Cake/Utility/ObjectCollection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Utility/ObjectCollection.php b/lib/Cake/Utility/ObjectCollection.php index 9c76b5b9e..12ae30c8d 100644 --- a/lib/Cake/Utility/ObjectCollection.php +++ b/lib/Cake/Utility/ObjectCollection.php @@ -286,7 +286,7 @@ abstract class ObjectCollection { * @return void */ public function unload($name) { - $name = array_pop(pluginSplit($name)); + list(, $name) = pluginSplit($name); unset($this->_loaded[$name], $this->_enabled[$name]); }