Update gallery.class.inc.php