mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Correct variable name (Fixes #206)
This commit is contained in:
parent
29d59693ac
commit
73cfcc6791
@ -191,8 +191,8 @@ class EditableFormField extends DataObject {
|
||||
* @param array The permissible CSS classes to add
|
||||
*/
|
||||
public function setAllowedCss(array $allowed) {
|
||||
if (is_array($allowed_css)){
|
||||
foreach ($allowed_css as $k => $v){
|
||||
if (is_array($allowed)) {
|
||||
foreach ($allowed as $k => $v) {
|
||||
self::$allowed_css[$k] = (!is_null($v)) ? $v : $k;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user