Change in the way conditions handle "0" in 6.1.10

Hey guys,
After being forced to update this morning because of the infinite loop error - we’ve hit a problem that conditionals appear to be handled incorrectly in this version.

PHP Warning:  expression_string_in cannot accept an empty needle '{{dc:looper:field key="Status"}}'. Please check your conditions. in /var/www/mylearning/wp-content/themes/pro/cornerstone/includes/classes/Util/ConditionRules.php on line 394

If the value of Status = 0 the warning is thrown and the condition fails.

The value should use === not == in your code - I assume it previously was?

The site broken is very large and live with a lot of users, so editing the code is not possible and I’m trying to get this site stable after this morning’s outage! I’m sure you guys undersand lol

Matt

Hi Matt,

Thanks for reaching out.
I have checked it in the latest version and found the issue you described here. I suspect this could be a bug in the latest version theme. I will report it to the Issue Tracker for further investigation by our development team.

Thanks

1 Like

Thanks you :slight_smile:

Hi Matt,

You are most welcome.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.