Correct variable name (Fixes #206)

This commit is contained in:
Will Rossiter 2014-07-06 17:50:21 +12:00
parent 29d59693ac
commit 73cfcc6791

View File

@ -191,8 +191,8 @@ class EditableFormField extends DataObject {
* @param array The permissible CSS classes to add * @param array The permissible CSS classes to add
*/ */
public function setAllowedCss(array $allowed) { public function setAllowedCss(array $allowed) {
if (is_array($allowed_css)){ if (is_array($allowed)) {
foreach ($allowed_css as $k => $v){ foreach ($allowed as $k => $v) {
self::$allowed_css[$k] = (!is_null($v)) ? $v : $k; self::$allowed_css[$k] = (!is_null($v)) ? $v : $k;
} }
} }