projects
/
platal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
ea28081
)
Fixes phones query.
author
Stéphane Jacob
<sj@m4x.org>
Fri, 24 Jul 2009 16:06:53 +0000
(18:06 +0200)
committer
Stéphane Jacob
<sj@m4x.org>
Fri, 24 Jul 2009 16:06:53 +0000
(18:06 +0200)
modules/profile/page.inc.php
patch
|
blob
|
blame
|
history
diff --git
a/modules/profile/page.inc.php
b/modules/profile/page.inc.php
index
1aaf2c2
..
508d39f
100644
(file)
--- a/
modules/profile/page.inc.php
+++ b/
modules/profile/page.inc.php
@@
-135,11
+135,11
@@
class ProfilePhones implements ProfileSetting
$success = true;
if (is_null($value)) {
$value = array();
$success = true;
if (is_null($value)) {
$value = array();
- $res = XDB::iterator(
"SELECT t.display_tel AS tel, t.tel_type AS type, t.pub, t.
comment
- FROM profile_phones
AS t
- WHERE
t.uid = {?} AND t.
link_type = {?}
- ORDER BY t
.tel_id"
,
- $
this->id
, $this->link_type);
+ $res = XDB::iterator(
'SELECT display_tel AS tel, tel_type AS type, pub,
comment
+ FROM profile_phones
+ WHERE
uid = {?} AND
link_type = {?}
+ ORDER BY t
el_id'
,
+ $
page->pid()
, $this->link_type);
if ($res->numRows() > 0) {
$value = $res->fetchAllAssoc();
} else {
if ($res->numRows() > 0) {
$value = $res->fetchAllAssoc();
} else {