Hello!
I'm not sure when it happened, but I'm sure it's FC bug.
So, I have php condition to check if $this->fields->display is empty.
Code:
if (empty($this->fields['text']->display)) { echo "empty"; } else { echo "not empty"; }
It worked fine for several years.
But today I discovered, completely by accident, when I was browsing the pages of the site, that the description area is blank.
I spent a lot of time trying to figure out what exactly happened.
In the database, the introtext table is empty. But my code wasn't working.
It turned out that $this->fields->display was returning a space.
I'm sure this space is added somewhere in the FC code. It's not in the database.
I edited the code and now everything works.
Code:
if (isset($this->fields['text']->display) && trim($this->fields['text']->display) !== '') { echo "not empty"; } else { echo "empty"; } ?>