Squash a PHP notice in the XML-RPC server.

git-svn-id: https://develop.svn.wordpress.org/trunk@22560 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2012-11-13 22:35:41 +00:00
parent f3fac2add3
commit ebe8d3e08f

View File

@ -5385,7 +5385,7 @@ class wp_xmlrpc_server extends IXR_Server {
$blah = explode('/', $match[0]);
$post_ID = (int) $blah[1];
$way = 'from the path';
} elseif ( preg_match('#p=[0-9]{1,}#', $urltest['query'], $match) ) {
} elseif ( isset( $urltest['query'] ) && preg_match('#p=[0-9]{1,}#', $urltest['query'], $match) ) {
// the querystring defines the post_ID (?p=XXXX)
$blah = explode('=', $match[0]);
$post_ID = (int) $blah[1];