From c71c407fd29f8acd595f7a2fca1787e55c5ee8d3 Mon Sep 17 00:00:00 2001 From: westi Date: Thu, 11 Mar 2010 21:58:17 +0000 Subject: [PATCH] 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 --- wp-includes/plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/plugin.php b/wp-includes/plugin.php index 3a9c507a6..bb41bd0ad 100644 --- a/wp-includes/plugin.php +++ b/wp-includes/plugin.php @@ -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;