Commit fdeab55e9a6489b561ccb5fed65fd7ac14953da8
1 parent
ce14b10a
Fixed issue with bulk download lock not being deleted if the queue is empty
Showing
1 changed file
with
2 additions
and
2 deletions
lib/foldermanagement/compressionArchiveUtil.inc.php
| ... | ... | @@ -648,8 +648,8 @@ class DownloadQueue |
| 648 | 648 | $_SESSION['zipcompression'] = null; |
| 649 | 649 | } |
| 650 | 650 | |
| 651 | - // check for any errors and if none found then create the entry for the zip file which will be used by the notification code | |
| 652 | - if (!PEAR::isError($res) && !PEAR::isError($result)/* && !PEAR::isError() // There was a third one here originally but I cannot remember what it was // */) { | |
| 651 | + if (count($queue) && !PEAR::isError($res) && !PEAR::isError($result)) { | |
| 652 | + // check for any errors and if none found then create the entry for the zip file which will be used by the notification code | |
| 653 | 653 | // create the db entry |
| 654 | 654 | self::addItem($code, self::getFolderId($code), -1, 'zip'); |
| 655 | 655 | // update the db entry with the appropriate status and message | ... | ... |