Skip to content

Commit

Permalink
Fixed error in getting local language file (used mysql_fetch_row, but…
Browse files Browse the repository at this point in the history
… then tried to reference that as though it were mysql_fetch_array). Tidied some code.

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@732 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Oct 18, 2003
1 parent 6cddfac commit 4fe52cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/dataentry.php
Expand Up @@ -86,7 +86,7 @@
{
$query = "SELECT language FROM {$dbprefix}surveys WHERE sid=$sid";
$result = mysql_query($query);
while ($row=mysql_fetch_row($result)) {$surveylanguage = $row['language'];}
while ($row=mysql_fetch_array($result)) {$surveylanguage = $row['language'];}
if (!$templatedir) {$thistpl=$tpldir."/default";} else {$thistpl=$tpldir."/$templatedir";}
if (!is_dir($thistpl)) {$thistpl=$tpldir."/default";}
$langdir="$publicdir/lang";
Expand Down

0 comments on commit 4fe52cf

Please sign in to comment.