If the number of elements in the array containing 0,Then an element in the array. Here is 0, so that the array contains an element and it will not be through Zero divided.
Line: 62 (Add)
PHP code:
if( count($tab_colors)==0 ) {
$tab_colors = array(0);
}
Now, however, a 0 at the beginning of the string of active menu item and
As a class name of the other classes on board.
Since numbers do not at the beginning of a CSS class are allowed and
All classes without value in the array of class = "" be spent if
We leglich remove the zero, we all figures in the early
CSS class, and also set the class only if it is something out there.
Line: 80 (substitute)
$ Id = 'class = "'. $ Id. ' "';
by:
if( is_numeric( $id{0} ) ) {
$id = substr( $id, 1, strlen($id)-1 );
}
$id = !empty($id) ? ' class="' . $id . '"' : '';
Gruß
Ec