Administrator
- Join Date:
- Sep 2009
- Location:
- Stuart, FL
- Posts:
- 14,065
- Plugin Contributions:
- 56
Bug in v1.6.0 class.base.php
The notify function in the current v1.6.0 /includes/classes/class.base.php (https://github.com/zencart/zencart/blob/v160/includes/classes/class.base.php) has a small issue. Since the NOTIFIER_TRACE value is always a string, the fragment NOTIFIER_TRACE != 0 of the following statement never evaluates to true, causing the if-clause to never be executed.
if (defined('NOTIFIER_TRACE') && NOTIFIER_TRACE != '' && NOTIFIER_TRACE != 0 && NOTIFIER_TRACE != FALSE && NOTIFIER_TRACE != 'false') {
To correct, either remove the fragment or convert it to an exact-match:
if (defined('NOTIFIER_TRACE') && NOTIFIER_TRACE != '' && NOTIFIER_TRACE !== 0 && NOTIFIER_TRACE != FALSE && NOTIFIER_TRACE != 'false') {