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:
parent
256cd6baac
commit
7bb461380e
@ -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.
|
// 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', '---');
|
set_pconfig(local_channel(), 'redbasic', 'schema', '---');
|
||||||
|
Reference in New Issue
Block a user