Query errors in Profile_tag
This commit is contained in:
parent
8b35e69b34
commit
5ccae1313c
|
@ -100,7 +100,7 @@ class Profile_tag extends Managed_DataObject
|
|||
{
|
||||
$ptag = new Profile_tag();
|
||||
|
||||
$qry = sprint('select profile_tag.tag '.
|
||||
$qry = sprintf('select profile_tag.tag '.
|
||||
'from profile_tag join profile_list '.
|
||||
' on (profile_tag.tagger = profile_list.tagger ' .
|
||||
' and profile_tag.tag = profile_list.tag) ' .
|
||||
|
@ -114,7 +114,7 @@ class Profile_tag extends Managed_DataObject
|
|||
|
||||
$tags = array();
|
||||
|
||||
$ptag->query($sql);
|
||||
$ptag->query($qry);
|
||||
|
||||
while ($ptag->fetch()) {
|
||||
$tags[] = $ptag->tag;
|
||||
|
|
Loading…
Reference in New Issue