MDL-20948 proper removal of cached pasword hashes just in case upgrading from <1.9.7
[moodle.git] / auth / db / auth.php
index caf57f0..441911c 100644 (file)
@@ -576,6 +576,9 @@ class auth_plugin_db extends auth_plugin_base {
      * @return bool
      */
     function is_internal() {
+        if (!isset($this->config->passtype)) {
+            return true;
+        }
         return ($this->config->passtype == 'internal');
     }