I set the module up and then this warning keeps showing up whenever I try to create content that has field privacy enabled on it.

So, I looked where it said and here is what it shows lines 161 to 181. Line 165 is bolded.

 // Figure out what node type (via name) we are accessing.
     $node_name = $form['type']['#value'];
     if (array_key_exists($node_name, $fields)) {
       if ($fields[$node_name] != '0') {
     <b>   foreach ($values as $name => $value) {</b>
          if ($name == $node_name) {
            foreach ($value as $field => $enabled) {
              if (!$enabled) continue;
              if (array_key_exists($field, $form)) {
                if (isset($form[$field][0])) {
                  $form_field =& $form[$field][0];
                } 
                elseif (isset($form[$field]['keys'])) {
                  $form_field =& $form[$field]['keys'];
                } 
                elseif (isset($form[$field]['key'])) {
                  $form_field =& $form[$field]['key'];
                } 
                else {
                  $form_field =& $form[$field];
                }

I know NOTHING of PHP code so I am at a loss at what could be wrong on line 165. Any help with this would be appreciated. I usually get a friend of mine to help, but she has gone on vacation!

Thank you!
Harley D. Palmer

Comments

Harley D Palmer’s picture

OKay I realized that line 165 can't be bolded..so yes I know that the html bold codage should not be there, and they aren't in my .module file - I was trying to make that line stand out! So what ELSE is wrong with that line? *laugh*

Harley D. Palmer

shmolf’s picture

I have this same issue. My site is still being developed so there isn't a whole lot of content messing with the database or anything.