From d034708620b528d08bc8c4750439f84de484bc4a Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Thu, 22 Nov 2018 04:45:04 +0000 Subject: -php:reduce errors --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'index.php') diff --git a/index.php b/index.php index 373b8ce..72b4bbf 100755 --- a/index.php +++ b/index.php @@ -4,7 +4,7 @@ if ( isset( $_GET['theme'] ) ){ $theme = $_GET['theme']; setcookie( 'theme', $theme, time()+60*60*24*30 ); } -if ($_POST['song'] && $_POST['name']) +if (isset($_POST['song']) && isset($_POST['name'])) { $song = str_replace( "'", "", $_POST['song'] ); $name = str_replace( "'", "", $_POST['name'] ); -- cgit 1.4.1