Browse Source

tweaking the value method.

Taylor Otwell 12 years ago
parent
commit
a19b8b9675
1 changed files with 1 additions and 1 deletions
  1. 1 1
      laravel/helpers.php

+ 1 - 1
laravel/helpers.php

@@ -428,7 +428,7 @@ function class_basename($class)
  */
 function value($value)
 {
-	return ($value instanceof Closure) ? call_user_func($value) : $value;
+	return (is_callable($value) and ! is_string($value)) ? call_user_func($value) : $value;
 }
 
 /**