Commit 41bd0a52 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Fixed notice when a profile icon might not exist

parent c953cc68
......@@ -50,6 +50,7 @@ switch ($type) {
case 'profileiconbyid':
case 'profileicon':
$id = param_integer('id');
$size = param_variable('size', '');
if ($type == 'profileicon') {
// Convert ID of user to the ID of a profileicon
......@@ -57,7 +58,6 @@ switch ($type) {
}
if ($id) {
$size = param_variable('size', '');
if ($size && !preg_match('/\d+x\d+/', $size)) {
throw new UserException('Invalid size for image specified');
}
......
Supports Markdown
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