Commit dcdbf3af authored by Jerome Mariette's avatar Jerome Mariette
Browse files

change split for preg_split so new php version is ok

parent c90aac16
......@@ -818,7 +818,7 @@ class tx_nG6_pi1 extends tslib_pibase {
if (!$GLOBALS['TSFE']->loginUser) { // If the user is not logged on
return $authorized_group == 0;
} else {
return in_array($authorized_group, split(",", $this->getCurrentUserGroups()));
return in_array($authorized_group, preg_split("/,/", $this->getCurrentUserGroups()));
}
}
......
......@@ -300,7 +300,7 @@ class tx_nG6_pi4 extends tslib_pibase {
if (!$GLOBALS['TSFE']->loginUser) { // If the user is not logged on
return $authorized_group == 0;
} else {
return in_array($authorized_group, split(",", $this->getCurrentUserGroups()));
return in_array($authorized_group, preg_split("/,/", $this->getCurrentUserGroups()));
}
}
......
......@@ -453,7 +453,7 @@ class tx_nG6_pi5 extends tslib_pibase {
if (!$GLOBALS['TSFE']->loginUser) { // If the user is not logged on
return $authorized_group == 0;
} else {
return in_array($authorized_group, split(",", $this->getCurrentUserGroups()));
return in_array($authorized_group, preg_split("/,/", $this->getCurrentUserGroups()));
}
}
......
Supports Markdown
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