Small bug in function.cms_selflink.php (v. 1.11.12)

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
gsalmeri
New Member
New Member
Posts: 1
Joined: Tue Feb 03, 2015 7:55 pm

Small bug in function.cms_selflink.php (v. 1.11.12)

Post by gsalmeri »

The tag {cms_selflink} creates a spurious blank before the link (" <a href=..." instead of "<a href=..."). It seems to me that the problem is on line 353 of function.cms_selflink.php:

if (! isset($params['label_side']) || $params['label_side'] == 'left' && $label != '')

I think it should be:

if ((! isset($params['label_side']) || $params['label_side'] == 'left') && $label != '')
Post Reply

Return to “Developers Discussion”