Commit ef6f5df7 authored by kevineinarsson's avatar kevineinarsson Committed by markcarver

Issue #3012715 by joseph.olstad, kevineinarsson: PHP 7.2.x compatibility - in the table template

parent 2d2d397f
......@@ -81,7 +81,7 @@ function bootstrap_table(array $variables) {
$responsive = $variables['responsive'];
// Add sticky headers, if applicable.
if (count($header) && $sticky) {
if (is_array($header) && count($header) && $sticky) {
// Add 'sticky-enabled' class to the table to identify it for JS.
// This is needed to target tables constructed by this function.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment