Bug 9587 Follow up to fix the problem Katrin identified
[koha.git] / koha-tmpl / opac-tmpl / prog / en / includes / opac-bottom.inc
index 25d74e2..b875028 100644 (file)
@@ -65,7 +65,7 @@
 <script type="text/javascript" language="javascript">
 
 navigator.id.watch({
-    loggedInUser: [% IF emailaddress %]'[% emailaddress %]'[% ELSE %]null[% END %],
+    loggedInUser: [% IF emailaddress && loggedinpersona %]'[% emailaddress %]'[% ELSE %]null[% END %],
     onlogin: function (assertion) {
         $.post('/cgi-bin/koha/svc/login',
             { assertion: assertion },