Make WordPress Core


Ignore:
Timestamp:
03/29/2006 01:51:55 AM (18 years ago)
Author:
ryan
Message:

AJAX, cause you love it. Props mdawaffe. fixes #2561

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-db.php

    r3570 r3660  
    175175
    176176    // Delete the category.
    177     $wpdb->query("DELETE FROM $wpdb->categories WHERE cat_ID = '$cat_ID'");
     177    if ( !$wpdb->query("DELETE FROM $wpdb->categories WHERE cat_ID = '$cat_ID'") )
     178        return 0;
    178179
    179180    // Update children to point to new parent.
Note: See TracChangeset for help on using the changeset viewer.