Minor change in handling variables

This commit is contained in:
Aaron Johnson 2022-03-23 07:35:40 -05:00
parent 7ee2c5b8cc
commit caa9e378e1
1 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ if (!$conn) {
echo "Connected successfully"; */
$displayForm = true;
if($_POST['adminPassword'] != ''){
if(isset($_POST['adminPassword'])){
$newPassword = str_replace("'", '', trim($_POST['newPassword']));
$adminPassword = md5(trim($_POST['adminPassword']));
@ -57,7 +57,7 @@ echo "Connected successfully"; */
$count = $myLookup->rowCount();
if($count == 1){
if($count = 1){
$displayForm = false;