aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_attachments.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-11-02 11:19:12 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-11-02 11:19:12 +0000
commit75539560e20ac6610d04faa7d4e21b06ee99b206 (patch)
tree590c4b1c1d18cd08d3aab92aac752214886cc123 /phpBB/includes/acp/acp_attachments.php
parentf9b2dcff66d88dfe9237aaa7147e622a2991606d (diff)
downloadforums-75539560e20ac6610d04faa7d4e21b06ee99b206.tar
forums-75539560e20ac6610d04faa7d4e21b06ee99b206.tar.gz
forums-75539560e20ac6610d04faa7d4e21b06ee99b206.tar.bz2
forums-75539560e20ac6610d04faa7d4e21b06ee99b206.tar.xz
forums-75539560e20ac6610d04faa7d4e21b06ee99b206.zip
fix 3 very tiny bugs... #35545, #35365 and #35305
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9041 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acp/acp_attachments.php')
-rw-r--r--phpBB/includes/acp/acp_attachments.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/phpBB/includes/acp/acp_attachments.php b/phpBB/includes/acp/acp_attachments.php
index 66d857a3df..15e9e6ab62 100644
--- a/phpBB/includes/acp/acp_attachments.php
+++ b/phpBB/includes/acp/acp_attachments.php
@@ -765,6 +765,8 @@ class acp_attachments
$s_forum_id_options = '';
+ /** @todo use in-built function **/
+
$sql = 'SELECT forum_id, forum_name, parent_id, forum_type, left_id, right_id
FROM ' . FORUMS_TABLE . '
ORDER BY left_id ASC';
@@ -795,7 +797,7 @@ class acp_attachments
}
else if ($row['left_id'] > $right + 1)
{
- $padding = $padding_store[$row['parent_id']];
+ $padding = empty($padding_store[$row['parent_id']]) ? '' : $padding_store[$row['parent_id']];
}
$right = $row['right_id'];
@@ -1168,7 +1170,7 @@ class acp_attachments
$location .= '/';
}
- if (@is_readable($location . 'mogrify' . $exe) && @filesize($location . 'mogrify' . $exe) > 3000)
+ if (@file_exists($location) && @is_readable($location . 'mogrify' . $exe) && @filesize($location . 'mogrify' . $exe) > 3000)
{
$imagick = str_replace('\\', '/', $location);
continue;