From 0d77a1dc811c4f784a1210889e37f854cd6b2723 Mon Sep 17 00:00:00 2001 From: Shish Date: Wed, 11 Jan 2023 11:46:42 +0000 Subject: [PATCH] nits --- ext/cron_uploader/main.php | 1 + ext/et/main.php | 1 + themes/lite/page.class.php | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/cron_uploader/main.php b/ext/cron_uploader/main.php index 6144f5f4..3b3576d7 100644 --- a/ext/cron_uploader/main.php +++ b/ext/cron_uploader/main.php @@ -390,6 +390,7 @@ class CronUploader extends Extension $database->rollback(); } } catch (\Exception $e) { + // rollback failed, let's just log things and die } $failed++; diff --git a/ext/et/main.php b/ext/et/main.php index a9d9037f..00d74a4e 100644 --- a/ext/et/main.php +++ b/ext/et/main.php @@ -114,6 +114,7 @@ class ET extends Extension 'origin' => $commitOrigin, ]; } catch (\Exception $e) { + // If we can't get git data, just skip it } } diff --git a/themes/lite/page.class.php b/themes/lite/page.class.php index c6cb63e4..a443d345 100644 --- a/themes/lite/page.class.php +++ b/themes/lite/page.class.php @@ -77,7 +77,7 @@ class Page extends BasePage $custom_sublinks .= ""; } - if ($this->left_enabled == false) { + if (!$this->left_enabled) { $left_block_html = ""; $main_block_html = "
{$main_block_html}
"; } else {