Skip to content
This repository was archived by the owner on Sep 23, 2022. It is now read-only.

Commit 4ef652a

Browse files
author
NerdOfLinux
authored
Changed to isset
1 parent a68ff03 commit 4ef652a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mysql_exec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
$query=$_POST['myquery'];//Commands
4040
$host=$_POST['host'];
4141
//If the variables are not empty, continue
42-
if (!empty($udb, $user, $pass, $query, $host)){
42+
if (isset($udb, $user, $pass, $query, $host)){
4343
//Set all current values as session variables below
4444
$_SESSION['saved_info']="1";$_SESSION['udb']="$udb";$_SESSION['mysql_user']="$user";$_SESSION['mysql_pass']="$pass";$_SESSION['query']="$query";$_SESSION['host']="$host";
4545
echo "<br> MySQL Query results: <br>";

0 commit comments

Comments
 (0)