Hello there,
I added a customfield to a view and used
<?php
print var_export($data, TRUE);
?>
to print out the available $data
then is put
<?php
print count ($data->node_data_field_members_field_members_uid);
?>
in the customfield.
If you look at the attachment you will see that some of counts are incorrect.
Anyone any ideas what's going on?
| Comment | File | Size | Author |
|---|---|---|---|
| customerror.png | 3.26 KB | ludo1960 |
Comments
Comment #1
ludo1960 commentedSeems the customfield is counting Null as a value:
the output from
Tried:
Should I go back to php school? :)
Comment #2
ludo1960 commentedSolved,
Getting rid of Null aint so easy, here's how to do it: