From dcd547218f4ec8f30b3b88297915895eb4b3ce48 Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Sun, 31 Oct 2010 22:10:44 +0000 Subject: [PATCH] Use isset to protect against Undefined index PHP notice. --- includes/api/ApiUpload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiUpload.php b/includes/api/ApiUpload.php index 13268a7292..f423347b7e 100644 --- a/includes/api/ApiUpload.php +++ b/includes/api/ApiUpload.php @@ -112,7 +112,7 @@ class ApiUpload extends ApiBase { $this->requireOnlyOneParameter( $this->mParams, 'sessionkey', 'file', 'url', 'statuskey' ); - if ( $this->mParams['statuskey'] ) { + if ( isset( $this->mParams['statuskey'] ) ) { // Status request for an async upload $sessionData = UploadFromUrlJob::getSessionData( $this->mParams['statuskey'] ); if ( !isset( $sessionData['result'] ) ) { -- 2.20.1