should remove php warning in issue #69

This commit is contained in:
Hannes Mannerheim 2015-01-20 14:15:01 +01:00
parent 45df35fdc0
commit 4e6744098d

View File

@ -225,9 +225,8 @@ class QvitterPlugin extends Plugin {
}
// if qvitter is opt-out, disable the default register page (if we don't have a valid invitation code)
$code = $_POST['code'];
if(!empty($code)) {
$valid_code = Invitation::getKV('code', $code);
if(isset($_POST['code'])) {
$valid_code = Invitation::getKV('code', $_POST['code']);
}
if(self::settings('enabledbydefault') && empty($valid_code)) {
$m->connect('main/register',