Fix "Undefined variable $table"

Signed-off-by: Craig Phillips <craig@craigphillips.biz>