Skip to content

Commit

Permalink
Fixing undefined variable usage
Browse files Browse the repository at this point in the history
Squash of pull request #872
  • Loading branch information
h4ck3rm1k3 authored and markstory committed Sep 29, 2012
1 parent 393849a commit 2d46fc6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/Cake/Cache/Engine/WincacheEngine.php
Expand Up @@ -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;
}
Expand Down
3 changes: 2 additions & 1 deletion lib/Cake/Console/ShellDispatcher.php
Expand Up @@ -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));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Model/Model.php
Expand Up @@ -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
);
}
Expand Down

0 comments on commit 2d46fc6

Please sign in to comment.