multi-user fixes

This commit is contained in:
Mike Macgirvin 2010-08-19 17:23:13 -07:00
commit 43adabcd20
3 changed files with 34 additions and 31 deletions

View file

@ -664,7 +664,7 @@ function photos_content(&$a) {
dbesc($datum)
);
if(count($i1)) {
//dbg(2);
$r = q("SELECT COUNT(*) AS `total`
FROM `item` LEFT JOIN `contact` ON `contact`.`id` = `item`.`contact-id`
WHERE `parent-uri` = '%s' AND `uri` != '%s' AND `item`.`deleted` = 0