Commit 3618a5a0 authored by Patzke Thomas's avatar Patzke Thomas
Browse files

Added handling of non-array values

Caused exception while PGP key upload.
parent b714198b
...@@ -83,11 +83,13 @@ class pgpKeySelect extends simpleSelectManagement ...@@ -83,11 +83,13 @@ class pgpKeySelect extends simpleSelectManagement
static function filterPgpDate($value = array()) static function filterPgpDate($value = array())
{ {
if (!is_array($value)) { $value = array($value); };
return static::filterSingleValue($value, 'pgpDate'); return static::filterSingleValue($value, 'pgpDate');
} }
static function filterPgpSize($value = array()) static function filterPgpSize($value = array())
{ {
if (!is_array($value)) { $value = array($value); };
return static::filterSingleValue($value, 'pgpSize'); return static::filterSingleValue($value, 'pgpSize');
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment