Skip to content
Browse files

Added check to see if locals exist before trying to use them in a tem…

…plate
  • Loading branch information...
1 parent 211a72c commit df0ba0500ee662ea4ce3827c9cc6c24b3dd800ed @brucespang committed Oct 5, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 frank/core.php
View
2 frank/core.php
@@ -153,7 +153,7 @@ public static function call($options=array()){
* @param array $options Options to control template rendering
*/
public static function render_template($name, $options){
- $locals = $options['locals'] ? $options['locals'] : array();
+ $locals = isset($options['locals']) ? $options['locals'] : array();
$view_path = settings::get('views');

0 comments on commit df0ba05

Please sign in to comment.
Something went wrong with that request. Please try again.