diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index 6516c1e1a..2abdc1d56 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -1292,9 +1292,10 @@ background-image: linear-gradient(to bottom, #882222, #111111);; $attrs[] = array('href', $config['remote']); $attrs[] = array('data-toggle', 'modal'); $attrs[] = array('role', 'button'); - if(isset($config['class'])) - $attrs[] = array('class', $config['class']); - else + if(isset($config['class'])) { + if($config['class']) + $attrs[] = array('class', $config['class']); + } else $attrs[] = array('class', 'btn'); return $attrs; } /* }}} */ diff --git a/views/bootstrap4/class.Bootstrap4.php b/views/bootstrap4/class.Bootstrap4.php index 9996345b4..1dabe4e01 100644 --- a/views/bootstrap4/class.Bootstrap4.php +++ b/views/bootstrap4/class.Bootstrap4.php @@ -1291,9 +1291,10 @@ background-image: linear-gradient(to bottom, #882222, #111111);; $attrs[] = array('href', $config['remote']); $attrs[] = array('data-toggle', 'modal'); $attrs[] = array('role', 'button'); - if(isset($config['class'])) - $attrs[] = array('class', $config['class']); - else + if(isset($config['class'])) { + if($config['class']) + $attrs[] = array('class', $config['class']); + } else $attrs[] = array('class', 'btn'); return $attrs; } /* }}} */