diff options
author | zotlabs <mike@macgirvin.com> | 2016-10-26 21:52:53 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2016-10-26 21:52:53 -0700 |
commit | 2b3b5d2c8a5587c81d2c6abf46df7e74cb7f7d02 (patch) | |
tree | b74ba12a675b9866465eb05034a6f2bd6f397986 /Zotlabs/Module/Photos.php | |
parent | d46fe209865d4b45bb4a27ec70744ee50a178dc7 (diff) | |
parent | 9e46409517c2f2fe1929d3332445aa8d8674c5ab (diff) | |
download | volse-hubzilla-2b3b5d2c8a5587c81d2c6abf46df7e74cb7f7d02.tar.gz volse-hubzilla-2b3b5d2c8a5587c81d2c6abf46df7e74cb7f7d02.tar.bz2 volse-hubzilla-2b3b5d2c8a5587c81d2c6abf46df7e74cb7f7d02.zip |
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
Diffstat (limited to 'Zotlabs/Module/Photos.php')
-rw-r--r-- | Zotlabs/Module/Photos.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Module/Photos.php b/Zotlabs/Module/Photos.php index 3f0ab3ab0..e459469ef 100644 --- a/Zotlabs/Module/Photos.php +++ b/Zotlabs/Module/Photos.php @@ -259,7 +259,7 @@ class Photos extends \Zotlabs\Web\Controller { @file_put_contents($r[0]['content'],$ph->imageString()); $data = $r[0]['content']; $fsize = @filesize($r[0]['content']); - q("update attach set filesize = %d where hash = '%s' and uid = %d limit 1", + q("update attach set filesize = %d where hash = '%s' and uid = %d", intval($fsize), dbesc($resource_id), intval($page_owner_uid) |