diff --git a/main/document/document.php b/main/document/document.php index c5d871b1d2..d858766ef2 100755 --- a/main/document/document.php +++ b/main/document/document.php @@ -1516,7 +1516,7 @@ if ($isAllowedToEdit || // END ACTION MENU // Attach certificate in the gradebook if (isset($_GET['curdirpath']) && - strpos($_GET['curdirpath'],'/certificates') !== false && + strpos($_GET['curdirpath'], '/certificates') !== false && isset($_GET['set_certificate']) && $_GET['set_certificate'] == strval(intval($_GET['set_certificate'])) ) {