that is what I had done -> Parse Error. With a blank $attr [‘qrcode’] between attr and [ there is no more error but the second exit is not possible. “Scan already done”
Thanks a lot for your reply. I tested the second solution. There is a small error in line 12 of the code: ‘qrcode’ (critical error) should be ‘qrcode’. The second entry is possible, but at the second exit a message indicates that this operation (scan) has already been performed.