Update of /cvsroot/openfirst/photogallery
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16973
Modified Files:
gallery.php
Log Message:
Added checking for ID querystring value. Response to bug #42.
Index: gallery.php
===================================================================
RCS file: /cvsroot/openfirst/photogallery/gallery.php,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** gallery.php 24 Dec 2003 01:01:36 -0000 1.16
--- gallery.php 30 Jan 2004 22:59:02 -0000 1.17
***************
*** 32,35 ****
--- 32,40 ----
$gallery_columns = 3; // Set this variable to the number of rows you want to display the images with
+ if (! isset($_GET['ID'])) {
+ echo "You have not selected a gallery to view!";
+ die(include($footer));
+ }
+
// Retrieve gallery information
$query = ofirst_dbquery("SELECT * FROM ofirst_photogallery_galleries WHERE ID = '".$_GET['ID']."'");
|