Browse Source

Accurate description of what is returned

Simon Males 12 years ago
parent
commit
8311a16ebd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Cake/View/View.php

+ 1 - 1
lib/Cake/View/View.php

@@ -583,7 +583,7 @@ class View extends Object {
  *
  * @param string $var The view var you want the contents of.
  * @param mixed $default The default/fallback content of $var.
- * @return mixed The content of the named var if its set, otherwise null.
+ * @return mixed The content of the named var if its set, otherwise $default.
  */
 	public function get($var, $default = null) {
 		if (!isset($this->viewVars[$var])) {