summaryrefslogtreecommitdiffstats
path: root/lib/batch.lib.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/batch.lib.php')
-rw-r--r--lib/batch.lib.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/batch.lib.php b/lib/batch.lib.php
index af4ed80a..867956a9 100644
--- a/lib/batch.lib.php
+++ b/lib/batch.lib.php
@@ -64,16 +64,11 @@ function send_zip( $name, $song_files ) {
$arc->set_options( $options );
$arc->add_files( $song_files );
if (count($arc->error)) {
- if (conf('debug')) {
- log_event($GLOBALS['user']->username,'archive',"Error: unable to add songs");
-
- }
+ debug_event('archive',"Error: unable to add songs",'3');
} // if failed to add songs
if (!$arc->create_archive()) {
- if (conf('debug')) {
- log_event($GLOBALS['user']->username,'archive',"Error: unable to create archive");
- }
+ debug_event('archive',"Error: unable to create archive",'3');
} // if failed to create archive
$arc->download_file();