That line is fine, although on my new install on a different server, I still see that line at (my) line 55. Just to confirm, is your PG version PowerGallery 2.1.0 ?
Could you also zip your choosegallery.php page and post it here? Download the one from your remote server just so that we are definitely looking at the right comparison. I could also upload your file to my live server, to see how this affets my installation (if at all).