]> git.mxchange.org Git - friendica.git/commitdiff
Bugfix: The table name was wrong
authorMichael Vogel <icarus@dabo.de>
Sun, 3 Jan 2016 07:12:00 +0000 (08:12 +0100)
committerMichael Vogel <icarus@dabo.de>
Sun, 3 Jan 2016 07:12:00 +0000 (08:12 +0100)
include/api.php

index 2e310ea3e67eb93c1be3700102c237fb11fbca6d..790894d3fba2c0365c57557960ca581cf9e31a46 100644 (file)
 
                $stringify_ids = (x($_REQUEST,'stringify_ids')?$_REQUEST['stringify_ids']:false);
 
-               $r = q("SELECT `unique_contact`.`id` FROM contact, `unique_contacts` WHERE contact.nurl = unique_contacts.url AND `uid` = %d AND `self` = 0 AND `blocked` = 0 AND `pending` = 0 $sql_extra",
+               $r = q("SELECT `unique_contacts`.`id` FROM `contact`, `unique_contacts` WHERE `contact`.`nurl` = `unique_contacts`.`url` AND `uid` = %d AND NOT `self` AND NOT `blocked` AND NOT `pending` $sql_extra",
                        intval(api_user())
                );