From 67308acca3754c56f38edc8955af2ff15c88e63f Mon Sep 17 00:00:00 2001 From: Joost van Dijk Date: Mon, 6 Jul 2015 09:26:23 +0200 Subject: [PATCH] fix bug in log message --- www/tiqr/index.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/www/tiqr/index.php b/www/tiqr/index.php index 931a416d..ba13b9cf 100644 --- a/www/tiqr/index.php +++ b/www/tiqr/index.php @@ -117,9 +117,8 @@ } $sid = $app['session']->getId(); $userdata = $tiqr->getAuthenticatedUser($sid); - $app['monolog']->addInfo(sprintf("[%s] userdata '%s'", $sid, $userdata)); - if( !is_null($userdata) ) { + $app['monolog']->addInfo(sprintf("[%s] userdata '%s'", $sid, $userdata)); $app['session']->set('authn', array('username' => $userdata)); return $app->redirect($return); } @@ -146,7 +145,7 @@ $app['monolog']->addWarning(sprintf("Failure sending push notification to [%s]", $translatedAddress)); } } else { - $app['monolog']->addWarning(sprintf("No %s translated address available for [%s]"),$notificationType,$notificationAddress); + $app['monolog']->addWarning(sprintf("No %s translated address available for [%s]", $notificationType, $notificationAddress)); } } $tiqr->generateAuthQR($sessionKey);