Skip to content

Commit

Permalink
Fix notices
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/phpsurveyor@2081 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
David Olivier committed Oct 8, 2006
1 parent 26e7f27 commit ed14cc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common.php
Expand Up @@ -1905,8 +1905,8 @@ function GetAdditionalLanguagesFromSurveyID($surveyid)
$query = "SELECT additional_languages FROM ".db_table_name('surveys')." WHERE sid=$surveyid";
$result = db_execute_num($query);
while ($result && ($row=$result->FetchRow())) {$surveylanguage = $row[0];}
$additional_languages = explode(" ", $surveylanguage);
if ($additional_languages==false) { $additional_languages = array();}
if (isset($surveylanguage)) $additional_languages = explode(" ", $surveylanguage);
if (!isset($additional_languages) || $additional_languages==false) { $additional_languages = array();}
return $additional_languages;
}

Expand Down

0 comments on commit ed14cc3

Please sign in to comment.