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

git-svn-id: https://develop.svn.wordpress.org/trunk@13674 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2010-03-11 21:58:17 +00:00
parent 9b019acfbe
commit c50eaee3d3
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,7 @@ function do_action($tag, $arg = '') {
}
$args = array();
if ( is_array($arg) && 1 == count($arg) && is_object($arg[0]) ) // array(&$this)
if ( is_array($arg) && 1 == count($arg) && isset($arg[0]) && is_object($arg[0]) ) // array(&$this)
$args[] =& $arg[0];
else
$args[] = $arg;