magic-fields-team / Magic-Fields-2

Magic Fields 2.X
http://magicfields.org
GNU General Public License v2.0
123 stars 47 forks source link

mf_register.php Warning on line 40 #232

Closed teledirigido closed 10 years ago

teledirigido commented 10 years ago

I've got a warning on here on debug = true mode: if (!in_array("editor", $option['supports'])) {

Notice: Undefined index: supports in /site/wp-content/plugins/magic-fields-2/mf_register.php on line 40

Warning: in_array() expects parameter 2 to be array, null given in /site/wp-content/plugins/magic-fields-2/mf_register.php on line 40

Maybe adding this will fix it? if ( !isset($options['supports']) || !in_array("editor", $option['supports']) ) {

Cheers.

sdgray8110 commented 10 years ago

Just noting that this isn't an isolated issue. I'm seeing this warning as well.

drivebass commented 10 years ago

I get that warning too!

drivebass commented 10 years ago

@teledirigido did that fix it?