Minor improvements (#908)

This commit is contained in:
Roman Kelesidis 2023-09-19 17:24:48 +07:00 committed by GitHub
commit 0a8fea75c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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