Commit c33a6449 authored by Tim Steiner's avatar Tim Steiner
Browse files

Fix a bug when no Zend_Log is registered with Zend_Registry as 'log'.

parent ad6d3a0f
......@@ -75,7 +75,7 @@ class Unl_XsrfToken
public function verify($tokenId, $onceOnly = TRUE)
if (Zend_Registry::get('log') instanceof Zend_Log) {
if (Zend_Registry::isRegistered('log') && Zend_Registry::get('log') instanceof Zend_Log) {
$log = Zend_Registry::get('log');
} else {
$log = new Zend_Log();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment