The Wakaba and Kareha support thread, part 3 (535)

235 Name: iSage!ISage.aan6 : 2012-08-27 12:01 ID:Qla6QxZX [Del]

Well, that's not a proper way, as you should just redirect user back if there's nothing to update.

Proper way is: return 1; at the end of delete_post, return 0; as an else statement for if($$row{image})
Also, change UPDATE sql statement to set image=null
(i have no idea, why it's not updating image field now)

Next, change code in delete_stuff to something like this:

    my $updated=0; 
foreach $post (@posts)
    # update the cached HTML pages
build_cache() if ($updated);
Name: Link:
Leave these fields empty (spam trap):
More options...