Skip to content
GitLab
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
056044c0
Commit
056044c0
authored
Sep 13, 2011
by
Richard Mansfield
Committed by
Gerrit Code Review
Sep 13, 2011
Browse files
Merge "Fix warning from getimagesize called on empty files (bug #848595)"
parents
3704d4a7
f9566281
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/file.php
View file @
056044c0
...
...
@@ -519,7 +519,7 @@ function get_dataroot_image_path($path, $id, $size=null) {
// Image is not available in this size. If there is a base image for
// it, we can make one however.
if
(
is_readable
(
$originalimage
))
{
if
(
is_readable
(
$originalimage
)
&&
filesize
(
$originalimage
)
)
{
$imageinfo
=
getimagesize
(
$originalimage
);
$originalmimetype
=
$imageinfo
[
'mime'
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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