Skip to content

Commit

Permalink
Fixed bug on insertnewsurvey - check for short_title was not compatib…
Browse files Browse the repository at this point in the history
…le with register_globals=on. Changed from if(!$short_title) to if (!$_POST['short_title']

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@235 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Apr 17, 2003
1 parent 71968f9 commit ac007b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/database.php
Expand Up @@ -262,7 +262,7 @@

elseif ($action == "insertnewsurvey")
{
if (!$short_title)
if (!$_POST['short_title'])
{
echo "<script type=\"text/javascript\">\n<!--\n alert(\"Your survey could not be created because it did not have a short title.\")\n //-->\n</script>\n";
}
Expand Down

0 comments on commit ac007b7

Please sign in to comment.