aboutsummaryrefslogtreecommitdiffstats
path: root/include/photo/photo_driver.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-01-21 00:40:45 -0800
committerfriendica <info@friendica.com>2014-01-21 00:40:45 -0800
commit530adb50ee741eb46f0e798d02d043afe7dd2d45 (patch)
tree7129d8829e92b5a64fc8ebd3d21a4fe2453c689d /include/photo/photo_driver.php
parentc07c53233666b1654b087ddb59a50384960d7a46 (diff)
downloadvolse-hubzilla-530adb50ee741eb46f0e798d02d043afe7dd2d45.tar.gz
volse-hubzilla-530adb50ee741eb46f0e798d02d043afe7dd2d45.tar.bz2
volse-hubzilla-530adb50ee741eb46f0e798d02d043afe7dd2d45.zip
sql error
Diffstat (limited to 'include/photo/photo_driver.php')
-rw-r--r--include/photo/photo_driver.php2
1 files changed, 1 insertions, 1 deletions
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)
);