Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing undefined variable usage

Squash of pull request #872
  • Loading branch information...
commit 2d46fc60bef5d2f11bb745c0d2f8078ee99344f8 1 parent 393849a
James Michael DuPont h4ck3rm1k3 authored markstory committed
1  lib/Cake/Cache/Engine/WincacheEngine.php
View
@@ -183,6 +183,7 @@ public function groups() {
* @return boolean success
**/
public function clearGroup($group) {
+ $success = null;
wincache_ucache_inc($this->settings['prefix'] . $group, 1, $success);
return $success;
}
3  lib/Cake/Console/ShellDispatcher.php
View
@@ -215,7 +215,8 @@ public function dispatch() {
return $Shell->main();
}
}
- throw new MissingShellMethodException(array('shell' => $shell, 'method' => $arg));
+
+ throw new MissingShellMethodException(array('shell' => $shell, 'method' => $command));
}
/**
2  lib/Cake/Model/Model.php
View
@@ -3250,7 +3250,7 @@ public function joinModel($assoc, $keys = array()) {
return array($with, array_unique(array_merge($assoc[$with], $keys)));
}
trigger_error(
- __d('cake_dev', 'Invalid join model settings in %s', $model->alias),
+ __d('cake_dev', 'Invalid join model settings in %s. The association parameter has the wrong type, expecting a string or array, but was passed type: %s', $this->alias, gettype($assoc)),
E_USER_WARNING
);
}
Please sign in to comment.
Something went wrong with that request. Please try again.