added missing curly braces

Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2017-01-24 17:50:49 +01:00 committed by Roland Haeder
parent 92901d8626
commit 5471dd79e8
No known key found for this signature in database
GPG Key ID: B72F8185C6C7BD78

View File

@ -228,16 +228,18 @@ function wall_upload_post(App $a, $desktopmode = true) {
if ($width > 640 || $height > 640) {
$ph->scaleImage(640);
$r = $ph->store($page_owner_uid, $visitor, $hash, $filename, t('Wall Photos'), 1, 0, $defperm);
if ($r)
if ($r) {
$smallest = 1;
}
}
if ($width > 320 || $height > 320) {
$ph->scaleImage(320);
$r = $ph->store($page_owner_uid, $visitor, $hash, $filename, t('Wall Photos'), 2, 0, $defperm);
if ($r AND ($smallest == 0))
if ($r AND ($smallest == 0)) {
$smallest = 2;
}
}
$basename = basename($filename);