fix parametars to execute
authordpavlin <dpavlin@8392b6e1-25fa-0310-8288-cc32f8e212ea>
Wed, 31 Aug 2005 11:05:26 +0000 (11:05 +0000)
committerdpavlin <dpavlin@8392b6e1-25fa-0310-8288-cc32f8e212ea>
Wed, 31 Aug 2005 11:05:26 +0000 (11:05 +0000)
git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/BackupPC/trunk@104 8392b6e1-25fa-0310-8288-cc32f8e212ea

bin/BackupPC_updatedb

index 33ef0f5..6fb26fc 100755 (executable)
@@ -124,6 +124,7 @@ sub hest_update {
        do {
 
                my $where = '';
+               my @data;
                if ($host_id && $share_id && $num) {
                        $where = qq{
                        WHERE
@@ -131,6 +132,7 @@ sub hest_update {
                                shares.id = ? AND
                                files.backupnum = ?
                        };
+                       @data = ( $host_id, $share_id, $num );
                }
 
                my $limit = sprintf('LIMIT '.EST_CHUNK.' OFFSET %d', $offset);
@@ -157,7 +159,7 @@ sub hest_update {
                        $limit
                });
 
-               $sth->execute(@_);
+               $sth->execute(@data);
                $results = $sth->rows;
 
                if ($results == 0) {