diff options
| author | Zach DeCook <zachdecook@gmail.com> | 2018-11-22 04:45:04 +0000 |
|---|---|---|
| committer | Zach DeCook <zachdecook@gmail.com> | 2018-11-22 04:45:04 +0000 |
| commit | d034708620b528d08bc8c4750439f84de484bc4a (patch) | |
| tree | 29a218141093f0e715b6356b562466705bf4e015 /index.php | |
| parent | c26de1b5b3fe74ed692659d15bae54fa1cac3753 (diff) | |
| download | prosongsa-d034708620b528d08bc8c4750439f84de484bc4a.tar.gz | |
-php:reduce errors
Diffstat (limited to 'index.php')
| -rwxr-xr-x | index.php | 2 |
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'] ); |
