0 is valid backupnum, so don't re-create full text index on it!
authordpavlin <dpavlin@8392b6e1-25fa-0310-8288-cc32f8e212ea>
Thu, 13 Oct 2005 11:43:58 +0000 (11:43 +0000)
committerdpavlin <dpavlin@8392b6e1-25fa-0310-8288-cc32f8e212ea>
Thu, 13 Oct 2005 11:43:58 +0000 (11:43 +0000)
git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/BackupPC/trunk@190 8392b6e1-25fa-0310-8288-cc32f8e212ea

bin/BackupPC_updatedb

index 2826959..25147db 100755 (executable)
@@ -143,7 +143,7 @@ sub hest_update {
 
                my $where = '';
                my @data;
-               if ($host_id && $share_id && $num) {
+               if (defined($host_id) && defined($share_id) && defined($num)) {
                        $where = qq{
                        WHERE
                                hosts.id = ? AND