Skip to content

Commit

Permalink
oops: file: Record importing backend on import
Browse files Browse the repository at this point in the history
  • Loading branch information
Jared Hancock committed Mar 30, 2015
1 parent 0d99eee commit f1e31ba
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions setup/cli/modules/file.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,14 @@ function run($args, $options) {
));
}
}

// Update file to record current backend
$sql = 'UPDATE '.FILE_TABLE.' SET bk='
.db_input($bk->getBkChar())
.' WHERE id='.db_input($f->getId());
if (!db_query($sql) || db_affected_rows()!=1)
return false;

} // end try
catch (Exception $ex) {
if ($bk) $bk->unlink();
Expand Down

0 comments on commit f1e31ba

Please sign in to comment.