Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
41bd0a52
Commit
41bd0a52
authored
Jan 20, 2007
by
Nigel McNie
Committed by
Nigel McNie
Jan 20, 2007
Browse files
Fixed notice when a profile icon might not exist
parent
c953cc68
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/thumb.php
View file @
41bd0a52
...
...
@@ -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'
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment