Browse Source

- Fix the Contact->set() method

- Remove the @ in Twitter accounts
pull/16/head
Jaussoin Timothée 12 years ago
parent
commit
80b8e2d6df
  1. 2
      app/models/contact/Contact.php
  2. 5
      app/models/contact/ContactDAO.php
  3. 2
      app/widgets/ContactInfo/ContactInfo.php

2
app/models/contact/Contact.php

@ -270,7 +270,7 @@ class Contact extends ModlModel {
switch($key) {
case 'twitter' :
$this->twitter = $value;
$this->twitter = str_replace('@', '', $value);
break;
case 'skype' :
$this->skype = $value;

5
app/models/contact/ContactDAO.php

@ -181,6 +181,11 @@ class ContactDAO extends ModlSQL {
loctext,
locuri,
loctimestamp,
twitter,
skype,
yahoo,
jid)
values (
:fn,

2
app/widgets/ContactInfo/ContactInfo.php

@ -77,7 +77,7 @@ class ContactInfo extends WidgetCommon
$img = $json->album->image[2]->{'#text'};
$url = $json->album->url;
if(isset($img)) {
if(isset($img) && $img != '') {
$img = '
<br />
<br />

Loading…
Cancel
Save