Skip to content
Snippets Groups Projects
Commit fc8f556f authored by Shelane French's avatar Shelane French
Browse files

Issue #3071152 by glynster, shelane, paddy_deburca: DivisionByZeroError: Modulo by zero

parent b8c9f3d6
No related branches found
No related tags found
1 merge request!50Resolve #2931301 "Views with responsive"
Pipeline #241055 passed with warnings
......@@ -114,7 +114,7 @@ class ViewsBootstrap {
* Number of columns in a 12 column grid or false.
*/
public static function getColSize($size) {
if (preg_match('~col-[a-z]{2}-([0-9]*)~', $size, $matches)) {
if (preg_match('~col-(?:[a-z]{2}-)?([0-9]+)~', $size, $matches)) {
return 12 / $matches[1];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment