1
1
Fork 0

some renamings

This commit is contained in:
Philipp Holzer 2019-04-05 08:00:34 +02:00
parent b4a59f32c7
commit 76fd2a4aa0
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5

View file

@ -369,17 +369,17 @@ class Photo extends BaseObject
$logger = $a->getLogger(); $logger = $a->getLogger();
$profiler = $a->getProfiler(); $profiler = $a->getProfiler();
$stmtUser = DBA::p( $userStmt = DBA::p(
"SELECT `user`.`nickname`, `user`.`page-flags`, `contact`.`id` FROM `user` INNER JOIN `contact` on `user`.`uid` = `contact`.`uid` "SELECT `user`.`nickname`, `user`.`page-flags`, `contact`.`id` FROM `user` INNER JOIN `contact` on `user`.`uid` = `contact`.`uid`
WHERE `user`.`uid` = %d AND `user`.`blocked` = 0 AND `contact`.`self` = 1 LIMIT 1", WHERE `user`.`uid` = %d AND `user`.`blocked` = 0 AND `contact`.`self` = 1 LIMIT 1",
intval($uid) intval($uid)
); );
if (!DBA::isResult($stmtUser)) { if (!DBA::isResult($userStmt)) {
$logger->info("Can't detect user data.", ['uid' => $uid]); $logger->info("Can't detect user data.", ['uid' => $uid]);
return []; return [];
} else { } else {
$user = DBA::toArray($stmtUser); $user = DBA::toArray($userStmt);
} }
$page_owner_nick = $user[0]['nickname']; $page_owner_nick = $user[0]['nickname'];
@ -402,7 +402,7 @@ class Photo extends BaseObject
$maxImageSize = Config::get('system', 'maximagesize'); $maxImageSize = Config::get('system', 'maximagesize');
if (($maxImageSize) && (strlen($imagedata) > $maxImageSize)) { if (($maxImageSize) && (strlen($imagedata) > $maxImageSize)) {
$logger->info("image exceeds size limit.", ['max' => $maxImageSize, 'current' => strlen($imagedata)]); $logger->info("Image exceeds size limit.", ['max' => $maxImageSize, 'current' => strlen($imagedata)]);
return []; return [];
} }