Skip to content

Commit

Permalink
! php8.2 depreciation sending non countable
Browse files Browse the repository at this point in the history
  • Loading branch information
Spuds committed Jan 8, 2024
1 parent 10938a5 commit 3d74273
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sources/subs/Attachments.subs.php
Expand Up @@ -14,7 +14,7 @@
* copyright: 2011 Simple Machines (http://www.simplemachines.org)
* license: BSD, See included LICENSE.TXT for terms and conditions.
*
* @version 1.1.9
* @version 1.1.10
*
*/

Expand Down Expand Up @@ -142,7 +142,7 @@ function automanage_attachments_create_directory($updir)
global $modSettings, $context;

$tree = get_directory_tree_elements($updir);
$count = count($tree);
$count = empty($tree) ? 0 : count($tree);

$directory = !empty($tree) ? attachments_init_dir($tree, $count) : false;
if ($directory === false)
Expand Down

0 comments on commit 3d74273

Please sign in to comment.