Make WordPress Core


Ignore:
Timestamp:
09/21/2008 08:41:25 PM (17 years ago)
Author:
westi
Message:

Notice fixes see #7509 props DD32 and jacobsantos.

File:
1 edited

Legend:

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

    r8923 r8944  
    1414wp_reset_vars(array('action', 'cat'));
    1515
    16 if ( $_GET['action'] == 'delete' && isset($_GET['delete']) )
     16if ( isset( $_GET['action'] ) && $_GET['action'] == 'delete' && isset($_GET['delete']) )
    1717    $action = 'bulk-delete';
    1818
     
    155155
    156156<?php
    157 $pagenum = absint( $_GET['pagenum'] );
     157$pagenum = isset( $_GET['pagenum'] ) ? absint( $_GET['pagenum'] ) : 0;
    158158if ( empty($pagenum) )
    159159    $pagenum = 1;
    160 if( !$catsperpage || $catsperpage < 0 )
     160if( ! isset( $catsperpage ) || $catsperpage < 0 )
    161161    $catsperpage = 20;
    162162
Note: See TracChangeset for help on using the changeset viewer.