]> git.mxchange.org Git - friendica.git/commitdiff
Code standards
authorfabrixxm <fabrix.xm@gmail.com>
Thu, 22 Nov 2018 15:57:41 +0000 (16:57 +0100)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 21 Jan 2019 14:10:46 +0000 (09:10 -0500)
mod/photos.php
src/Model/Photo.php

index b637d69694add678dea727010dace228a6e21785..c72b66f259fa380d2af5eae408692332f13ceef8 100644 (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;
index edb4bc0e26a827ac756981ddb202923fba956702..f65f495b568c25e20b5e59da10cfbfb2e491b8ec 100644 (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);
        }
 }