Bugzilla – Attachment 22632 Details for
Bug 11135
Parsing of OVERRIDE_SYSPREF_NAMES logs warnings
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11135 Check variable exists before splitting
Bug-11135-Check-variable-exists-before-splitting.patch (text/plain), 1.10 KB, created by
Marcel de Rooy
on 2013-10-31 12:02:12 UTC
(
hide
)
Description:
Bug 11135 Check variable exists before splitting
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2013-10-31 12:02:12 UTC
Size:
1.10 KB
patch
obsolete
>From 7d4f0d4bf68cb36d0c80a3c2c423ecd9eff60cf6 Mon Sep 17 00:00:00 2001 >From: Colin Campbell <colin.campbell@ptfs-europe.com> >Date: Thu, 24 Oct 2013 17:00:23 +0100 >Subject: [PATCH] Bug 11135 Check variable exists before splitting >Content-Type: text/plain; charset=utf-8 > >calling split on an undefined var generates warning to >the log. Lets check it exists before processing it > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > admin/preferences.pl | 5 ++++- > 1 files changed, 4 insertions(+), 1 deletions(-) > >diff --git a/admin/preferences.pl b/admin/preferences.pl >index 8636afe..9a2c8ca 100755 >--- a/admin/preferences.pl >+++ b/admin/preferences.pl >@@ -121,7 +121,10 @@ sub TransformPrefsToHTML { > my $tab = $data->{ $title }; > $tab = { '' => $tab } if ( ref( $tab ) eq 'ARRAY' ); > >- my @override_syspref_names = split( /,/, $ENV{"OVERRIDE_SYSPREF_NAMES"} ); >+ my @override_syspref_names; >+ if ( $ENV{OVERRIDE_SYSPREF_NAMES} ) { >+ @override_syspref_names = split /,/, $ENV{OVERRIDE_SYSPREF_NAMES}; >+ } > > foreach my $group ( sort keys %$tab ) { > if ( $group ) { >-- >1.7.7.6
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11135
:
22373
| 22632