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]); }