From d529125c8e01b936d47774d89d6c17e63c1e22b4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 26 Jan 2017 15:23:30 +0100 Subject: [PATCH] added spaces + some curly braces + some usage of dbm::is_result() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- mod/admin.php | 2 +- mod/photos.php | 11 +++++++---- mod/profiles.php | 1 + 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/mod/admin.php b/mod/admin.php index 334f8ea6a6..31e7cd1a7c 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -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; } diff --git a/mod/photos.php b/mod/photos.php index d9530f3490..910d03d001 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -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; } } diff --git a/mod/profiles.php b/mod/profiles.php index b73b969f0c..d172febcfe 100644 --- a/mod/profiles.php +++ b/mod/profiles.php @@ -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), )); -- 2.39.5