Resolve #88
Merge pull request #131 from DmitriyMX/fix_table_php

XMLDB: error select for empty table fix
Merge remote-tracking branch 'refs/remotes/origin/master' into dev