ソースを参照

fix post event

tags/vichan-4.9.91
czaks 10年前
コミット
46802d3f1b
1個のファイルの変更5行の追加1行の削除
  1. +5
    -1
      post.php

+ 5
- 1
post.php ファイルの表示

@@ -758,7 +758,11 @@ if (isset($_POST['delete'])) {
}
$post = (object)$post;
if ($error = event('post', $post)) {
$post->files = array_map(function($a) { return (object)$a; }, $post->files);
$error = event('post', $post);
$post->files = array_map(function($a) { return (array)$a; }, $post->files);

if ($error) {
undoImage((array)$post);
error($error);
}


読み込み中…
キャンセル
保存