aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-12-06 15:52:37 -0800
committerfriendica <info@friendica.com>2012-12-06 15:52:37 -0800
commit6ed27f9503d62b5c97e22318689b2584320feaec (patch)
tree6b766cd170064c33af9b6039400d2f2c1ea60834 /include
parent7d1610197d7eaf5c97d34ebbe777a0a475da38de (diff)
downloadvolse-hubzilla-6ed27f9503d62b5c97e22318689b2584320feaec.tar.gz
volse-hubzilla-6ed27f9503d62b5c97e22318689b2584320feaec.tar.bz2
volse-hubzilla-6ed27f9503d62b5c97e22318689b2584320feaec.zip
contact photo issues
Diffstat (limited to 'include')
-rw-r--r--include/Photo.php2
-rw-r--r--include/zot.php4
2 files changed, 3 insertions, 3 deletions
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)) {
diff --git a/include/zot.php b/include/zot.php
index 2d2bc92c6..7e1f781a4 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -406,7 +406,7 @@ function import_xchan_from_json($j) {
require_once("Photo.php");
- $photos = import_profile_photo($j->photo,0,$xchan_hash);
+ $photos = import_profile_photo($j->photo,$xchan_hash);
$r = q("update xchan set xchan_photo_date = '%s', xchan_photo_l = '%s', xchan_photo_m = '%s', xchan_photo_s = '%s', xchan_photo_mimetype = '%s'
where xchan_hash = '%s' limit 1",
dbesc($j->photo_updated),
@@ -524,7 +524,7 @@ function import_xchan($arr) {
require_once("Photo.php");
- $photos = import_profile_photo($arr['photo'],0,$xchan_hash);
+ $photos = import_profile_photo($arr['photo'],$xchan_hash);
$r = q("update xchan set xchan_photo_date = '%s', xchan_photo_l = '%s', xchan_photo_m = '%s', xchan_photo_s = '%s', xchan_photo_mimetype = '%s'
where xchan_hash = '%s' limit 1",
dbesc($arr['photo_updated']),