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

check if $tables is an array