diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index cd53d09f2..d31f00041 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -1403,9 +1403,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 f97a47d9f..590a25e20 100644 --- a/views/bootstrap4/class.Bootstrap4.php +++ b/views/bootstrap4/class.Bootstrap4.php @@ -1324,9 +1324,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; } /* }}} */