Skip to content

Commit

Permalink
s_lang session var replacements for notices on printablesurvey.php
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/phpsurveyor@2085 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
David Olivier committed Oct 9, 2006
1 parent 81e45d6 commit f59602b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions common.php
Expand Up @@ -1440,11 +1440,12 @@ function createFieldMap($surveyid, $style="null") {

}
//Get list of questions
$s_lang = GetBaseLanguageFromSurveyID($surveyid);
$aquery = "SELECT * FROM ".db_table_name('questions').", ".db_table_name('groups')
." WHERE ".db_table_name('questions').".gid=".db_table_name('groups').".gid AND "
.db_table_name('questions').".sid=$surveyid AND "
.db_table_name('questions').".language='".$_SESSION['s_lang']."' AND "
.db_table_name('groups').".language='".$_SESSION['s_lang']."' "
.db_table_name('questions').".language='{$s_lang}' AND "
.db_table_name('groups').".language='{$s_lang}' "
." ORDER BY {$dbprefix}groups.group_order, title";
$aresult = db_execute_assoc($aquery) or die ("Couldn't get list of questions in createFieldMap function.<br />$query<br />".htmlspecialchars($connect->ErrorMsg()));
while ($arow=$aresult->FetchRow()) //With each question, create the appropriate field(s)
Expand Down

0 comments on commit f59602b

Please sign in to comment.