Backend for songs.zachdecook.com
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'] );