Same bug fix as in r5411 but for tensor_pdb().
Authored by: bugman 2008-04-08
Parent: [r5412]
Child: [r5414]