Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed issue #6037: Zero uses left by default when importing tokens fr…

…om CSV
  • Loading branch information...
commit e6d846dd0d6766888d4737549ec2f7000f5a2fa4 1 parent 86582a3
@c-schmitz c-schmitz authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  admin/tokens.php
View
1  admin/tokens.php
@@ -2878,6 +2878,7 @@
if (!$dupfound && !$invalidemail)
{
if (!isset($writearray['emailstatus']) || $writearray['emailstatus']=='') $writearray['emailstatus'] = "OK";
+ if (!isset($writearray['usesleft']) || $writearray['usesleft']=='') $writearray['usesleft'] = 1;
if (!isset($writearray['language']) || $writearray['language'] == "") $writearray['language'] = $baselanguage;
if (isset($writearray['validfrom']) && trim($writearray['validfrom']=='')){ unset($writearray['validfrom']);}
if (isset($writearray['validuntil']) && trim($writearray['validuntil']=='')){ unset($writearray['validuntil']);}
Please sign in to comment.
Something went wrong with that request. Please try again.