From 6ed27f9503d62b5c97e22318689b2584320feaec Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 6 Dec 2012 15:52:37 -0800 Subject: contact photo issues --- include/Photo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/Photo.php') diff --git a/include/Photo.php b/include/Photo.php index f77605b98..c3165cc9f 100644 --- a/include/Photo.php +++ b/include/Photo.php @@ -528,7 +528,7 @@ class Photo { $x = q("select id from photo where `resource_id` = '%s' and uid = %d and `xchan` = '%s' and `scale` = %d limit 1", dbesc($rid), intval($uid), - intval($xchan), + dbesc($xchan), intval($scale) ); if(count($x)) { -- cgit v1.2.3