Review
null_date and spaces at end of line
This commit is contained in:
parent
6ea8b0441b
commit
130e02ddef
1 changed files with 3 additions and 3 deletions
|
@ -103,7 +103,7 @@ class Contact extends BaseObject
|
||||||
dba::update('contact', array('term-date' => datetime_convert()), array('id' => $contact['id']));
|
dba::update('contact', array('term-date' => datetime_convert()), array('id' => $contact['id']));
|
||||||
|
|
||||||
if ($contact['url'] != '') {
|
if ($contact['url'] != '') {
|
||||||
dba::update('contact', array('term-date' => datetime_convert()), array('`nurl` = ? AND `term-date` <= 1000-00-00', normalise_link($contact['url'])));
|
dba::update('contact', array('term-date' => datetime_convert()), array('`nurl` = ? AND `term-date` <= ?', normalise_link($contact['url']), NULL_DATE));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* @todo
|
/* @todo
|
||||||
|
@ -484,7 +484,7 @@ class Contact extends BaseObject
|
||||||
WHERE `uid` = %d
|
WHERE `uid` = %d
|
||||||
) ", intval($uid), intval($uid)
|
) ", intval($uid), intval($uid)
|
||||||
);
|
);
|
||||||
|
|
||||||
return $r;
|
return $r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -501,7 +501,7 @@ class Contact extends BaseObject
|
||||||
AND `pending` = 0
|
AND `pending` = 0
|
||||||
LIMIT %d, %d", intval($uid), intval($uid), intval($start), intval($count)
|
LIMIT %d, %d", intval($uid), intval($uid), intval($start), intval($count)
|
||||||
);
|
);
|
||||||
|
|
||||||
return $r;
|
return $r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue