Make WordPress Core

Changeset 13674


Ignore:
Timestamp:
03/11/2010 09:58:17 PM (15 years ago)
Author:
westi
Message:

Fix a possible undefined offset warning in do_action. Fixes #11241 props chrisbliss18.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/plugin.php

    r13567 r13674  
    322322
    323323    $args = array();
    324     if ( is_array($arg) && 1 == count($arg) && is_object($arg[0]) ) // array(&$this)
     324    if ( is_array($arg) && 1 == count($arg) && isset($arg[0]) && is_object($arg[0]) ) // array(&$this)
    325325        $args[] =& $arg[0];
    326326    else
Note: See TracChangeset for help on using the changeset viewer.