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

git-svn-id: http://svn.automattic.com/wordpress/trunk@13674 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2010-03-11 21:58:17 +00:00
parent f91e95f100
commit c71c407fd2
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,7 @@ function do_action($tag, $arg = '') {
} }
$args = array(); $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]; $args[] =& $arg[0];
else else
$args[] = $arg; $args[] = $arg;