Browse Source

Code standards

pull/6482/head
fabrixxm 2 years ago
committed by Hypolite Petovan
parent
commit
6f59c82978
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      mod/photos.php
  2. +2
    -2
      src/Model/Photo.php

+ 1
- 1
mod/photos.php View File

@ -690,7 +690,7 @@ function photos_post(App $a)
* they acquire comments, likes, dislikes, and/or tags
*/
$r = Photo::select([], ["`album` = ? AND `uid` = ? AND `created` > UTC_TIMESTAMP() - INTERVAL 3 HOUR", $album, $page_owner_uid]);
$r = Photo::select([], ['`album` = ? AND `uid` = ? AND `created` > UTC_TIMESTAMP() - INTERVAL 3 HOUR', $album, $page_owner_uid]);
if (!DBA::isResult($r) || ($album == L10n::t('Profile Photos'))) {
$visible = 1;


+ 2
- 2
src/Model/Photo.php View File

@ -67,7 +67,7 @@ class Photo extends BaseObject
}
/**
* @brief Get a photo for user id
* @brief Get photos for user id
*
* @param integer $uid User id
* @param string $resourceid Rescource ID of the photo
@ -543,6 +543,6 @@ class Photo extends BaseObject
*/
public static function newResource()
{
return system::createGUID(32, false);
return System::createGUID(32, false);
}
}

Loading…
Cancel
Save