summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
Diffstat (limited to 'post.php')
-rw-r--r--post.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/post.php b/post.php
index f4acf28a..a30622ef 100644
--- a/post.php
+++ b/post.php
@@ -595,10 +595,12 @@
$post['thumb'] = substr_replace($post['thumb'], '', 0, mb_strlen($board['dir'] . $config['dir']['thumb']));
}
+ $post = (object)$post;
if($error = event('post', $post)) {
- undoImage($post);
+ undoImage((array)$post);
error($error);
}
+ $post = (array)$post;
$id = post($post, $OP);