From 7bb461380e6198987da8827210297c29d301d022 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Wed, 9 Mar 2016 14:15:50 -0800 Subject: issue #319 - make sure we have a local_channel() and an App::channel before trying to change the default schema for a channel --- view/theme/redbasic/php/style.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'view/theme/redbasic/php/style.php') diff --git a/view/theme/redbasic/php/style.php b/view/theme/redbasic/php/style.php index ef1450681..6058a3c14 100644 --- a/view/theme/redbasic/php/style.php +++ b/view/theme/redbasic/php/style.php @@ -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', '---'); -- cgit v1.2.3