From 1ce0b4f7c6e7cb51a61b47b8431e4db2634e0fdc Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 8 Jan 2020 10:36:37 -0700 Subject: [PATCH] Button Class: Further clarification in code comment. --- resources/classes/button.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/classes/button.php b/resources/classes/button.php index d7c73aedb8..8af56f1f05 100644 --- a/resources/classes/button.php +++ b/resources/classes/button.php @@ -60,7 +60,7 @@ if (!class_exists('button')) { $button .= $array['onmouseover'] ? "onmouseenter=".self::quote($array['onmouseover'])." " : null; $button .= $array['onmouseout'] ? "onmouseleave=".self::quote($array['onmouseout'])." " : null; $button .= "class='btn btn-".($array['class'] ? $array['class'] : 'default')." ".($array['disabled'] ? 'disabled' : null)."' "; - //ensure margin* styles are not applied to the button element + //ensure margin* styles are not applied to the button element when a link is defined if (is_array($array['style']) && @sizeof($array['style']) != 0) { foreach ($array['style'] as $property => $value) { if (!$array['link'] || !substr_count($property, 'margin')) {