dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* Revert r76503
[lhc/web/wiklou.git]
/
includes
/
upload
/
UploadStash.php
diff --git
a/includes/upload/UploadStash.php
b/includes/upload/UploadStash.php
index
fe5a30d
..
15e3288
100644
(file)
--- a/
includes/upload/UploadStash.php
+++ b/
includes/upload/UploadStash.php
@@
-44,6
+44,10
@@
class UploadStash {
$this->repo = $repo;
+ if ( ! isset( $_SESSION ) ) {
+ throw new UploadStashNotAvailableException( 'no session variable' );
+ }
+
if ( !isset( $_SESSION[UploadBase::SESSION_KEYNAME] ) ) {
$_SESSION[UploadBase::SESSION_KEYNAME] = array();
}