Skip to content

Commit

Permalink
Fixes failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joezidell-saleswarp committed Sep 3, 2018
1 parent 013ecc3 commit 34bfeba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Cake/Network/CakeRequest.php
Expand Up @@ -303,7 +303,7 @@ protected function _base() {
return $this->base = $base;
}

if (!$baseUrl) {
if (empty($baseUrl)) {
$base = dirname(env('PHP_SELF'));
// Clean up additional / which cause following code to fail..
$base = preg_replace('#/+#', '/', $base);
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Utility/ObjectCollection.php
Expand Up @@ -126,7 +126,7 @@ public function trigger($callback, $params = array(), $options = array()) {
}
$result = null;
foreach ($list as $name) {
$result = call_user_func_array(array($this->_loaded[$name], $callback), compact('subject') + $params);
$result = call_user_func_array(array($this->_loaded[$name], $callback), array_filter(compact('subject')) + $params);
if ($options['collectReturn'] === true) {
$collected[] = $result;
}
Expand Down

0 comments on commit 34bfeba

Please sign in to comment.