Skip to content
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Segr committed Feb 27, 2014
1 parent 3344c08 commit bb8a1a7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions manager/includes/document.parser.class.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -2766,8 +2766,8 @@ function getTemplateVars($idnames = array(), $fields = '*', $docid = '', $publis
"{$fields}, IF(tvc.value != '', tvc.value, tv.default_text) as value",
$this->getFullTableName('site_tmplvars') . " tv
INNER JOIN " . $this->getFullTableName('site_tmplvar_templates') . " tvtpl ON tvtpl.tmplvarid = tv.id
LEFT JOIN " . $this->getFullTableName('site_tmplvar_contentvalues') . " tvc ON tvc.tmplvarid=tv.id AND tvc.contentid = '{$docid}'
{$query} AND tvtpl.templateid = '{$docRow['template']}'",
LEFT JOIN " . $this->getFullTableName('site_tmplvar_contentvalues') . " tvc ON tvc.tmplvarid=tv.id AND tvc.contentid = '{$docid}'",
"{$query} AND tvtpl.templateid = '{$docRow['template']}'",
($sort ? "{$sort} {$dir}" : "")
);

Expand Down Expand Up @@ -3041,7 +3041,6 @@ function getWebUserInfo($uid) {
INNER JOIN " . $this->getFullTableName("web_user_attributes") . " wua ON wua.internalkey=wu.id",
"wu.id='{$uid}'"
);
$rs= $this->db->query($sql);
if ($row = $this->db->getRow($rs)) {
if (!$row["usertype"])
$row["usertype"]= "web";
Expand Down

0 comments on commit bb8a1a7

Please sign in to comment.