about summary refs log tree commit diff
path: root/index.php
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@gmail.com>2018-11-22 04:45:04 +0000
committerZach DeCook <zachdecook@gmail.com>2018-11-22 04:45:04 +0000
commitd034708620b528d08bc8c4750439f84de484bc4a (patch)
tree29a218141093f0e715b6356b562466705bf4e015 /index.php
parentc26de1b5b3fe74ed692659d15bae54fa1cac3753 (diff)
downloadprosongsa-d034708620b528d08bc8c4750439f84de484bc4a.tar.gz
-php:reduce errors
Diffstat (limited to 'index.php')
-rwxr-xr-xindex.php2
1 files changed, 1 insertions, 1 deletions
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'] );