Make WordPress Core

Changeset 10631


Ignore:
Timestamp:
02/23/2009 06:12:53 AM (16 years ago)
Author:
ryan
Message:

Fix notice. Props ionfish. fixes #9018

File:
1 edited

Legend:

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

    r10605 r10631  
    9090
    9191    // Prophylactic.  Take out empty ids.
    92     foreach ( (array) $_POST['widget-id'] as $key => $val )
    93         if ( !$val )
    94             unset($_POST['widget-id'][$key]);
     92    if ( isset($_POST['widget-id']) ) {
     93        foreach ( (array) $_POST['widget-id'] as $key => $val ) {
     94            if ( !$val )
     95                unset($_POST['widget-id'][$key]);
     96        }
     97    }
    9598
    9699    // Reset the key numbering and store
Note: See TracChangeset for help on using the changeset viewer.