Merge branch 'MDL-61240' of git://github.com/stronk7/moodle

This commit is contained in:
Andrew Nicols 2018-01-22 11:36:41 +08:00
commit 6092574ddf

View File

@ -443,7 +443,7 @@ class sqlsrv_native_moodle_database extends moodle_database {
* @return array of table names in lowercase and without prefix
*/
public function get_tables($usecache = true) {
if ($usecache and count($this->tables) > 0) {
if ($usecache and $this->tables !== null) {
return $this->tables;
}
$this->tables = array ();