X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FWebRequest.php;h=8cf25bbd03dcd6a80cfb46351c9bcc07c27cd19e;hb=d6cf07fac52fc9c4c1ccdd1d6b2f730993031c59;hp=e251ac5bb597dceec19f74c027925eb9b5c8ecdb;hpb=9f936d59410a0c6cbbc124dc667aa57a33a6fa88;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/WebRequest.php b/includes/WebRequest.php index e251ac5bb5..8cf25bbd03 100644 --- a/includes/WebRequest.php +++ b/includes/WebRequest.php @@ -1044,6 +1044,7 @@ HTML; * * @since 1.19 * + * @throws MWException * @return String */ protected function getRawIP() { @@ -1335,8 +1336,10 @@ class FauxRequest extends WebRequest { * @return mixed */ public function getSessionData( $key ) { - if( isset( $this->session[$key] ) ) + if( isset( $this->session[$key] ) ) { return $this->session[$key]; + } + return null; } /**