start on channel_remove(), add some generic channel queries to the API layers

This commit is contained in:
friendica
2013-02-16 15:51:55 -08:00
parent 663f09e01b
commit a21e6cffa1
5 changed files with 59 additions and 35 deletions

View File

@@ -114,7 +114,7 @@ function new_contact($uid,$url,$channel,$interactive = false) {
$hash = $a->observer['xchan_hash'];
}
else {
$r = q("select * from channel where uid = %d limit 1",
$r = q("select * from channel where channel_id = %d limit 1",
intval($uid)
);
if(! $r) {