issue #319 - make sure we have a local_channel() and an App::channel before trying to change the default schema for a channel

This commit is contained in:
redmatrix 2016-03-09 14:15:50 -08:00
parent 256cd6baac
commit 7bb461380e

View File

@ -218,5 +218,5 @@ if($schemecss) {
// Set the schema to the default schema in derived themes. See the documentation for creating derived themes how to override this.
if($a->channel['channel_theme'] != 'redbasic')
if(local_channel() && $a->channel && $a->channel['channel_theme'] != 'redbasic')
set_pconfig(local_channel(), 'redbasic', 'schema', '---');