Skip to content
This repository has been archived by the owner on Sep 25, 2021. It is now read-only.

Commit

Permalink
Reg fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Dickenson committed Mar 6, 2015
1 parent 8d082da commit 400d771
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions register.php
Expand Up @@ -262,7 +262,7 @@ function checkMissing()
$params = array();
$params[] = array(':name', $system->cleanvars($_POST['TPL_nick']), 'str');
$db->query($query, $params);
if ($db->numrows('nick') > 0)
if ($db->numrows() > 0)
{
$ERR = $ERR_111; // Selected user already exists
}
Expand All @@ -271,7 +271,7 @@ function checkMissing()
$params = array();
$params[] = array(':email', $system->cleanvars($_POST['TPL_email']), 'str');
$db->query($query, $params);
if ($db->numrows('email') > 0)
if ($db->numrows() > 0)
{
$ERR = $ERR_115; // E-mail already used
}
Expand Down

0 comments on commit 400d771

Please sign in to comment.