foreach ( $res as $row ) {
$oldRestrictions = [];
foreach ( explode( ':', trim( $row->page_restrictions ) ) as $restrict ) {
foreach ( $res as $row ) {
$oldRestrictions = [];
foreach ( explode( ':', trim( $row->page_restrictions ) ) as $restrict ) {
// Make sure we are not settings restrictions to ""
if ( count( $temp ) == 1 && $temp[0] ) {
// old old format should be treated as edit/move restriction
// Make sure we are not settings restrictions to ""
if ( count( $temp ) == 1 && $temp[0] ) {
// old old format should be treated as edit/move restriction