From 530adb50ee741eb46f0e798d02d043afe7dd2d45 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 21 Jan 2014 00:40:45 -0800 Subject: sql error --- include/photo/photo_driver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/photo') diff --git a/include/photo/photo_driver.php b/include/photo/photo_driver.php index debe1bc38..ff92e5a0f 100644 --- a/include/photo/photo_driver.php +++ b/include/photo/photo_driver.php @@ -525,7 +525,7 @@ function import_profile_photo($photo,$xchan,$thing = false) { if($thing) $hash = photo_new_resource(); else { - $r = q("select resource_id from photo where xchan = '%s' and (photo_flags & %d ) scale = 4 limit 1", + $r = q("select resource_id from photo where xchan = '%s' and (photo_flags & %d ) and scale = 4 limit 1", dbesc($xchan), intval(PHOTO_XCHAN) ); -- cgit v1.2.3