Use array_key_exists instead of isset for checking array values.

This commit is contained in:
Mathew Davies
2010-10-02 21:05:37 +01:00
parent 8b1c9c113c
commit e8f99bb04e
+1 -1
View File
@@ -608,7 +608,7 @@ class Mustache {
} else if (isset($view->$tag_name)) {
return $view->$tag_name;
}
} else if (isset($view[$tag_name])) {
} else if (array_key_exists ($tag_name, $view)) {
return $view[$tag_name];
}
}