aboutsummaryrefslogtreecommitdiffstats
path: root/admin/configuration.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/configuration.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/admin/configuration.php b/admin/configuration.php
index b1516bfbb..1714a78bc 100644
--- a/admin/configuration.php
+++ b/admin/configuration.php
@@ -68,7 +68,14 @@ if ( isset( $_POST['submit'] ) )
while ( $row = mysql_fetch_array( $result ) )
{
$site = 'delete_site_'.$row['id'];
- if ( $_POST[$site] == 1 ) delete_site( $row['id'] );
+ if ( $_POST[$site] == 1 )
+ {
+ delete_site( $row['id'] );
+ // if any picture of this site were linked to another categories, we
+ // have to update the informations of those categories. To make it
+ // simple, we just update all the categories
+ update_category( 'all' );
+ }
}
// thumbnail prefix must not contain accentuated characters
$old_prefix = $_POST['prefix_thumbnail'];