aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Cobrand.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-07-06 12:10:46 +0100
committerMatthew Somerville <matthew@mysociety.org>2012-07-06 12:10:46 +0100
commit842ff2b00f4924f8580710c977ccce7bef33b0c2 (patch)
treee2ab4fda5a811b214fb4f501208f98f07a2c3c41 /perllib/FixMyStreet/Cobrand.pm
parentdeb369669b540f607e435390f4606b927569dded (diff)
Factor out the SQL restriction from site_restriction, as it's only used in one place.
Diffstat (limited to 'perllib/FixMyStreet/Cobrand.pm')
-rw-r--r--perllib/FixMyStreet/Cobrand.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Cobrand.pm b/perllib/FixMyStreet/Cobrand.pm
index b88f6facc..d694e4bdb 100644
--- a/perllib/FixMyStreet/Cobrand.pm
+++ b/perllib/FixMyStreet/Cobrand.pm
@@ -38,7 +38,7 @@ Simply returns the config variable (so this function can be overridden in test s
=cut
sub _get_allowed_cobrands {
- return FixMyStreet->config('ALLOWED_COBRANDS');
+ return FixMyStreet->config('ALLOWED_COBRANDS') || [];
}
=head2 available_cobrand_classes