check if $tables is an array
Merge pull request #9741 from owncloud/fix-repair-innodb-9737-master

check if $tables is an array