浏览代码

trying to fix an undefined index error still broken

pull/16/head
mauirixxx 7 年前
父节点
当前提交
5d3b8b81ee
共有 1 个文件被更改,包括 6 次插入5 次删除
  1. +6
    -5
      includes/verifications.php

+ 6
- 5
includes/verifications.php 查看文件

@@ -49,10 +49,11 @@ if (!empty($_POST['useremail'])) {

####################
# verifying passwords match each other

if (($_POST['userpass1']) != ($_POST['userpass2'])) {
echo '<center>The passwords don\'t match!<br /><a href="register.php">Please try again!</a>';
include_once ('footer.php');
exit();
if (!empty($_POST['userpass1'] && $_POST['userpass2'])) {
if (($_POST['userpass1']) != ($_POST['userpass2'])) {
echo '<center>The passwords don\'t match!<br /><a href="register.php">Please try again!</a>';
include_once ('footer.php');
exit();
}
}
?>

正在加载...
取消
保存