diff --git a/app/contacts/contact_edit.php b/app/contacts/contact_edit.php index ee318ddab1..9102a6f22a 100644 --- a/app/contacts/contact_edit.php +++ b/app/contacts/contact_edit.php @@ -307,8 +307,8 @@ } //set the mode - if (isset($_SESSION['theme']['qr_image'])) { - if (strlen($_SESSION['theme']['qr_image']) > 0) { + if (isset($_SESSION['theme']['qr_image']['text'])) { + if (strlen($_SESSION['theme']['qr_image']['text']) == 0) { $mode = '4'; } else {