From 8311a16ebd6c1cf71bf7e8b3a8b05ad3c30e48ea Mon Sep 17 00:00:00 2001 From: Simon Males Date: Wed, 11 Sep 2013 22:28:09 +0800 Subject: [PATCH] Accurate description of what is returned --- lib/Cake/View/View.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/View/View.php b/lib/Cake/View/View.php index af3c6574b..6292f926f 100644 --- a/lib/Cake/View/View.php +++ b/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])) {