pkgsubmit.php: Fix comment parsing in arrays

Fix the comment parsing in arrays, so that a hash in a one-line array does not
get parsed as a comment.

Signed-off-by: canyonknight <canyonknight@gmail.com>
Fix typo in delete permission warning

Signed-off-by: Connor Behan <connor.behan@gmail.com>
Signed-off-by: canyonknight <canyonknight@gmail.com>