Skip to content

Commit

Permalink
Fixes bug noted by Tom Ringate where an error is caused when deleting…
Browse files Browse the repository at this point in the history
… a labelset.

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@1128 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Aug 18, 2004
1 parent de09d46 commit 4187bba
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions admin/labels.php
Expand Up @@ -3,34 +3,34 @@
#############################################################
# >>> PHP Surveyor #
#############################################################
# > Author: Jason Cleeland #
# > E-mail: jason@cleeland.org #
# > Mail: Box 99, Trades Hall, 54 Victoria St, #
# > CARLTON SOUTH 3053, AUSTRALIA
# > Date: 19 April 2003 #
# #
# > Author: Jason Cleeland #
# > E-mail: jason@cleeland.org #
# > Mail: Box 99, Trades Hall, 54 Victoria St, #
# > CARLTON SOUTH 3053, AUSTRALIA #
# > Date: 19 April 2003 #
# #
# This set of scripts allows you to develop, publish and #
# perform data-entry on surveys. #
#############################################################
# #
# Copyright (C) 2003 Jason Cleeland #
# #
# This program is free software; you can redistribute #
# it and/or modify it under the terms of the GNU General #
# Public License as published by the Free Software #
# Foundation; either version 2 of the License, or (at your #
# #
# Copyright (C) 2003 Jason Cleeland #
# #
# This program is free software; you can redistribute #
# it and/or modify it under the terms of the GNU General #
# Public License as published by the Free Software #
# Foundation; either version 2 of the License, or (at your #
# option) any later version. #
# #
# This program is distributed in the hope that it will be #
# useful, but WITHOUT ANY WARRANTY; without even the #
# implied warranty of MERCHANTABILITY or FITNESS FOR A #
# PARTICULAR PURPOSE. See the GNU General Public License #
# for more details. #
# #
# You should have received a copy of the GNU General #
# Public License along with this program; if not, write to #
# #
# This program is distributed in the hope that it will be #
# useful, but WITHOUT ANY WARRANTY; without even the #
# implied warranty of MERCHANTABILITY or FITNESS FOR A #
# PARTICULAR PURPOSE. See the GNU General Public License #
# for more details. #
# #
# You should have received a copy of the GNU General #
# Public License along with this program; if not, write to #
# the Free Software Foundation, Inc., 59 Temple Place - #
# Suite 330, Boston, MA 02111-1307, USA. #
# Suite 330, Boston, MA 02111-1307, USA. #
#############################################################
*/

Expand All @@ -45,7 +45,7 @@
if ($action == "updateset") {updateset($lid);}
if ($action == "insertset") {$lid=insertset();}
if ($action == "modanswers") {modanswers($lid);}
if ($action == "delset") {if (delset($lid)) {unset($lid);}}
if ($action == "delset") {if (delset($lid)) {$lid=0;}}

echo $htmlheader;

Expand Down Expand Up @@ -113,7 +113,7 @@
}
}
echo "\t\t\t\t\t\t<option value=''";
if (!isset($lid)) {echo " selected";}
if (!isset($lid) || $lid<1) {echo " selected";}
echo ">"._AD_CHOOSE."</option>\n";

echo "\t\t\t\t\t</select>\n"
Expand Down Expand Up @@ -439,7 +439,7 @@ function modanswers($lid)
if (!isset($_POST['method'])) {
$_POST['method'] = _AL_SAVE;
}
switch($_POST['method'])
switch($_POST['method'])
{
case _AL_ADD:
if (isset($_POST['code']) && $_POST['code'])
Expand Down

0 comments on commit 4187bba

Please sign in to comment.