Skip to content

Commit

Permalink
Fixed undefined index warnings with parse_url().
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeluno committed Feb 17, 2019
1 parent 4b643a7 commit 1c9491a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
Expand Up @@ -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' ] );
Expand Down
Expand Up @@ -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' ] );
Expand Down
Expand Up @@ -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' ] );
Expand Down
Expand Up @@ -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' ] );
Expand Down

0 comments on commit 1c9491a

Please sign in to comment.