The 15.10 patch is slightly different to the others.
in 16.04+ we can check using the SITE_TEMPLATE constant, but that didn't exist in 15.10
instead we need to check if $template->get('owner') === '0' as it seems that fetching the variable from db via get() method make it type string.
But we can't go (int) $template->get('owner') as both '0' and null will be cast to 0
The 15.10 patch is slightly different to the others.
in 16.04+ we can check using the SITE_TEMPLATE constant, but that didn't exist in 15.10
instead we need to check if $template- >get('owner' ) === '0' as it seems that fetching the variable from db via get() method make it type string.
But we can't go (int) $template- >get('owner' ) as both '0' and null will be cast to 0