aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/redbasic/php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-03-09 14:15:50 -0800
committerredmatrix <git@macgirvin.com>2016-03-09 14:15:50 -0800
commit7bb461380e6198987da8827210297c29d301d022 (patch)
tree0309e72bd666423f1b5cad9e0f91901113236ebd /view/theme/redbasic/php
parent256cd6baace37c24b39057fdee6f4d3f1428c190 (diff)
downloadvolse-hubzilla-7bb461380e6198987da8827210297c29d301d022.tar.gz
volse-hubzilla-7bb461380e6198987da8827210297c29d301d022.tar.bz2
volse-hubzilla-7bb461380e6198987da8827210297c29d301d022.zip
issue #319 - make sure we have a local_channel() and an App::channel before trying to change the default schema for a channel
Diffstat (limited to 'view/theme/redbasic/php')
-rw-r--r--view/theme/redbasic/php/style.php2
1 files changed, 1 insertions, 1 deletions
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', '---');