fixed in lib/CMInvitationCode.php
:
change
public function getLimit() {
if ($this->_registrationLimit == self::NO_LIMIT)
to
public function getLimit($raw = null) {
if (!$raw && $this->_registrationLimit == self::NO_LIMIT)
and change
'registrationsLimit' => $this->getLimit(),
'activationNeeded' => $this->isActivationNeeded(),
to
'registrationsLimit' => $this->getLimit(true),
'activationNeeded' => (int) $this->isActivationNeeded(),
We updated the plug to version 2.0 and included setting of registration limit so this should also fix the bug. please report if you still have problems using the plug
We didn’t end up needing it for our project, so I don’t know. I’m fairly certain this is caused by MySQL 5 not converting the string value to 0
. So if you’re testing with 5+, you should be fine.
One more problem: The plugin cannot be uninstalled. It’s require
ing a premium file without first checking if it exists.