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

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

parent 0caf9e1e
No related branches found
No related tags found
1 merge request!52remove core key
Pipeline #384083 passed with warnings
......@@ -115,7 +115,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 to comment