Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment