diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-01-01 20:49:13 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-01-01 20:49:13 +0000 |
| commit | 150c14f36b9773f65070208986a607d3782f66b2 (patch) | |
| tree | 4293453da1b6268ef3cad53b03f571a94810484c /lib/python | |
| parent | 1bd4065bcdb4c438f986e8ec0e19dfef9550d402 (diff) | |
| download | enigma2-150c14f36b9773f65070208986a607d3782f66b2.tar.gz enigma2-150c14f36b9773f65070208986a607d3782f66b2.zip | |
check for validity of parameter
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Components/config.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index 40a460c2..6897aa88 100644 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -466,6 +466,8 @@ class configElement: if control == ConfigSlider: return str(data) elif control == configSelection: + if len(self.vals) < data + 1: + return "0" if isinstance(self.vals[data], str): return str(data) else: |
