diff --git a/block_qr.php b/block_qr.php index 67b0a4b..d6cd2c3 100644 --- a/block_qr.php +++ b/block_qr.php @@ -233,7 +233,7 @@ public function get_content() { } // Short link option only in edit mode. - if ($USER->editing == 0) { + if (empty($USER->editing)) { $fullview = false; } else { $fullview = true;