Permalink
Browse files

Make sure backup file is attached to email.

  • Loading branch information...
1 parent d21bd19 commit 1410adb33f72d9daa3f7aa2aa71b89227d3686f6 @willmot willmot committed Jan 14, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 functions/backup.functions.php
@@ -125,7 +125,9 @@ function hmbkp_delete_backup( $file ) {
*/
function hmbkp_email_backup() {
- if ( ! hmbkp_get_email_address() || ! file_exists( HM_Backup::get_instance()->archive_filepath() ) )
+ $file = HM_Backup::get_instance()->archive_filepath();
+
+ if ( ! hmbkp_get_email_address() || ! file_exists( $file ) )
return;
// Raise the memory and time limit

0 comments on commit 1410adb

Please sign in to comment.