From 0a8fea75c5de9e106f4a7a50a831dba80bd3ee18 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Tue, 19 Sep 2023 17:24:48 +0700 Subject: [PATCH] Minor improvements (#908) --- library/includes/cron/jobs/attach_maintenance.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/library/includes/cron/jobs/attach_maintenance.php b/library/includes/cron/jobs/attach_maintenance.php index 5a7edd6da..258f4f70f 100644 --- a/library/includes/cron/jobs/attach_maintenance.php +++ b/library/includes/cron/jobs/attach_maintenance.php @@ -38,12 +38,9 @@ DB()->add_shutdown_query("DROP TEMPORARY TABLE IF EXISTS $tmp_attach_tbl"); $attach_dir = get_attachments_dir(); // Creates thumb directory if not exists -if ((int)$attach_config['img_create_thumbnail']) { - $thumb_dir = "$attach_dir/" . THUMB_DIR; - - if (!is_dir($thumb_dir)) { - bb_mkdir($thumb_dir); - } +$thumb_dir = "$attach_dir/" . THUMB_DIR; +if (!is_dir($thumb_dir)) { + bb_mkdir($thumb_dir); } // Get all names of existed attachments and insert them into $tmp_attach_tbl