]> git.mxchange.org Git - friendica.git/commitdiff
added spaces + some curly braces + some usage of dbm::is_result()
authorRoland Häder <roland@mxchange.org>
Thu, 26 Jan 2017 14:23:30 +0000 (15:23 +0100)
committerRoland Haeder <roland@mxchange.org>
Sat, 18 Mar 2017 23:52:24 +0000 (00:52 +0100)
Signed-off-by: Roland Häder <roland@mxchange.org>
mod/admin.php
mod/photos.php
mod/profiles.php

index 334f8ea6a6b25b32f8774a1b21ae90c87b0d4718..31e7cd1a7cc7300fdfc49d6806c8cf72adf1e4b4 100644 (file)
@@ -859,7 +859,7 @@ function admin_page_site(App $a) {
                $allowed_theme_list = Config::get('system', 'allowed_themes');
 
                foreach ($files as $file) {
-                       if (intval(file_exists($file.'/unsupported')))
+                       if (file_exists($file.'/unsupported'))
                                continue;
                        }
 
index d9530f3490579a0018c4a489196ea49be404ff0a..910d03d00106e562a1d3258bdd2c72245728e49b 100644 (file)
@@ -1345,10 +1345,11 @@ function photos_content(App $a) {
                // The query leads to a really intense used index.
                // By now we hide it if someone wants to.
                if (!Config::get('system', 'no_count', false)) {
-                       if ($_GET['order'] === 'posted')
+                       if ($_GET['order'] === 'posted') {
                                $order = 'ASC';
-                       else
+                       } else {
                                $order = 'DESC';
+                       }
 
                        $prvnxt = qu("SELECT `resource-id` FROM `photo` WHERE `album` = '%s' AND `uid` = %d AND `scale` = 0
                                $sql_extra ORDER BY `created` $order ",
@@ -1361,10 +1362,12 @@ function photos_content(App $a) {
                                        if ($prvnxt[$z]['resource-id'] == $ph[0]['resource-id']) {
                                                $prv = $z - 1;
                                                $nxt = $z + 1;
-                                               if ($prv < 0)
+                                               if ($prv < 0) {
                                                        $prv = count($prvnxt) - 1;
-                                               if ($nxt >= count($prvnxt))
+                                               }
+                                               if ($nxt >= count($prvnxt)) {
                                                        $nxt = 0;
+                                               }
                                                break;
                                        }
                                }
index b73b969f0c32acd37fc8ba54a9d42f987e75f011..d172febcfed8deba2208c4a50297e4a1465fd8c0 100644 (file)
@@ -623,6 +623,7 @@ function profiles_content(App $a) {
 
                require_once('include/profile_selectors.php');
 
+
                $a->page['htmlhead'] .= replace_macros(get_markup_template('profed_head.tpl'), array(
                        '$baseurl' => App::get_baseurl(true),
                ));