diff --git a/lib/plugins/authpdo/auth.php b/lib/plugins/authpdo/auth.php index 45b2ca647d9bb3b3b0979e5acd0497bc0288a32b..88bc44af1252991cb361d99d1e71a8658e6bce48 100644 --- a/lib/plugins/authpdo/auth.php +++ b/lib/plugins/authpdo/auth.php @@ -648,10 +648,9 @@ class auth_plugin_authpdo extends DokuWiki_Auth_Plugin { $this->_debug($e, -1, $line); $this->_debug("SQL: <pre>$dsql</pre>", -1, $line); $result = false; - } finally { - $sth->closeCursor(); - $sth = null; } + $sth->closeCursor(); + $sth = null; return $result; }