Skip to content
Snippets Groups Projects
Commit 0525341a authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Merge pull request #11754 from owncloud/fix-division-null

Prevent division by zero
parents 9babcfb9 3efac5a4
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@ function progress($notification_code, $severity, $message, $message_code, $bytes
case STREAM_NOTIFY_PROGRESS:
if ($bytes_transferred > 0) {
if (!isset($filesize)) {
if (!isset($filesize) || $filesize === 0) {
} else {
$progress = (int)(($bytes_transferred/$filesize)*100);
if($progress>$lastsize) { //limit the number or messages send
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment