aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Cover_photo.php
diff options
context:
space:
mode:
authormrjive <mrjive@mrjive.it>2018-01-24 18:30:59 +0100
committerGitHub <noreply@github.com>2018-01-24 18:30:59 +0100
commitf560a3c98fc7cf4de7d86bd7f074c9995b3d240a (patch)
tree7cf16324e513afcf0446e19a0db39ec2ece21672 /Zotlabs/Module/Cover_photo.php
parent131baa9f4584b74ab76328d776c0bb5ce603da7d (diff)
parentadd9890754780c886188504647b3058c4cc146c1 (diff)
downloadvolse-hubzilla-f560a3c98fc7cf4de7d86bd7f074c9995b3d240a.tar.gz
volse-hubzilla-f560a3c98fc7cf4de7d86bd7f074c9995b3d240a.tar.bz2
volse-hubzilla-f560a3c98fc7cf4de7d86bd7f074c9995b3d240a.zip
Merge pull request #11 from redmatrix/dev
Dev
Diffstat (limited to 'Zotlabs/Module/Cover_photo.php')
-rw-r--r--Zotlabs/Module/Cover_photo.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/Zotlabs/Module/Cover_photo.php b/Zotlabs/Module/Cover_photo.php
index 47bce6c2b..cfb513365 100644
--- a/Zotlabs/Module/Cover_photo.php
+++ b/Zotlabs/Module/Cover_photo.php
@@ -64,12 +64,12 @@ class Cover_photo extends \Zotlabs\Web\Controller {
$image_id = substr($image_id,0,-2);
}
-
- $srcX = $_POST['xstart'];
- $srcY = $_POST['ystart'];
- $srcW = $_POST['xfinal'] - $srcX;
- $srcH = $_POST['yfinal'] - $srcY;
-
+
+
+ $srcX = intval($_POST['xstart']);
+ $srcY = intval($_POST['ystart']);
+ $srcW = intval($_POST['xfinal']) - $srcX;
+ $srcH = intval($_POST['yfinal']) - $srcY;
$r = q("select gender from profile where uid = %d and is_default = 1 limit 1",
intval(local_channel())