about summary refs log tree commit diff
path: root/page.php
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@gmail.com>2018-11-04 19:10:24 -0500
committerZach DeCook <zachdecook@gmail.com>2018-11-04 19:10:24 -0500
commitef0c84d49802dc24915cbddad41b931920446ba3 (patch)
treec3b7316404166616e583b5bded49f944ace13d1c /page.php
parent452b129ff5c30bc3a58cf69e0435b00d5975ab58 (diff)
downloadprosongsa-ef0c84d49802dc24915cbddad41b931920446ba3.tar.gz
* Favs: Fix mistake for faving with space in name
Diffstat (limited to 'page.php')
-rw-r--r--page.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/page.php b/page.php
index d54acbb..a2176b3 100644
--- a/page.php
+++ b/page.php
@@ -82,7 +82,7 @@ function tocentry( $item ){
 		$class = 'incomplete';
 	}
 	$output = "<li class='$class'><a href=?song=$item[number]>$item[number]. $item[title]</a>";
-	if ( $item['author'] ){$output .= "($item[author])";}
+	if ( $item['author'] ){ $output .= "($item[author])";}
 	if ( $item['verse'] ){ $output .= "($item[verse])"; }
 	if ( $item['key'] ){ $output .= "($item[key])"; }
 
@@ -204,7 +204,7 @@ function renderFavorite( $number )
 	{
 		return "<form method='post'>"
 			. "<input type='hidden' name='song' value='$number'>"
-			. "<input name='name' placeholder='your name' value=" . ($name ??  '') . ">"
+			. "<input name='name' placeholder='your name' value='" . ($name ??  '') . "'>"
 			. "<input type='submit' value='Add to Favorites' class='btn btn-F'>"
 			. "</form>";
 	}