Skip to content
Permalink
Browse files

Fixed undefined index warnings with `parse_url()`.

  • Loading branch information...
michaeluno committed Feb 17, 2019
1 parent 4b643a7 commit 1c9491af3ddee65f39463cacef37f83bb94f5a8a
@@ -108,7 +108,7 @@ protected function _isValidAjaxReferrer() {
if ( ! $this->oProp->bIsAdminAjax ) {
return false;
}
$_aReferrer = parse_url( $this->oProp->sAjaxReferrer );
$_aReferrer = parse_url( $this->oProp->sAjaxReferrer ) + array( 'query' => '', 'path' => '' );
parse_str( $_aReferrer[ 'query' ], $_aQuery );
$_sBaseName = basename( $_aReferrer[ 'path' ] );
@@ -145,8 +145,7 @@ protected function _isValidAjaxReferrer() {
return false;
}
$_aReferrer = parse_url( $this->oProp->sAjaxReferrer );
$_aQuery = array();
$_aReferrer = parse_url( $this->oProp->sAjaxReferrer ) + array( 'query' => '', 'path' => '' );
parse_str( $_aReferrer[ 'query' ], $_aQuery );
$_sBaseName = basename( $_aReferrer[ 'path' ] );
@@ -82,7 +82,7 @@ protected function _isInThePage() {
*/
protected function _isValidAjaxReferrer() {
$_aReferrer = parse_url( $this->oProp->sAjaxReferrer );
$_aReferrer = parse_url( $this->oProp->sAjaxReferrer ) + array( 'query' => '', 'path' => '' );
parse_str( $_aReferrer[ 'query' ], $_aQuery );
$_sBaseName = basename( $_aReferrer[ 'path' ] );
@@ -76,7 +76,7 @@ protected function _isInThePage() {
*/
protected function _isValidAjaxReferrer() {
$_aReferrer = parse_url( $this->oProp->sAjaxReferrer );
$_aReferrer = parse_url( $this->oProp->sAjaxReferrer ) + array( 'query' => '', 'path' => '' );
parse_str( $_aReferrer[ 'query' ], $_aQuery );
$_sBaseName = basename( $_aReferrer[ 'path' ] );

0 comments on commit 1c9491a

Please sign in to comment.
You can’t perform that action at this time.