summaryrefslogtreecommitdiff
path: root/program/lib
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-05-27 19:51:04 +0200
committerThomas Bruederli <thomas@roundcube.net>2014-05-27 19:51:04 +0200
commit17acd5ccda5b23792477891ab969b378cacbbaf2 (patch)
treefe4d2050da8f78d550f2cd8e8a2325c1b648b486 /program/lib
parentc946decb4ea8a68baf3b860d5475eb6d8bb33b64 (diff)
Use public property instead of setter method to improve compatibility
Diffstat (limited to 'program/lib')
-rw-r--r--program/lib/Roundcube/rcube_session.php18
1 files changed, 7 insertions, 11 deletions
diff --git a/program/lib/Roundcube/rcube_session.php b/program/lib/Roundcube/rcube_session.php
index f04f47a21..26f78433a 100644
--- a/program/lib/Roundcube/rcube_session.php
+++ b/program/lib/Roundcube/rcube_session.php
@@ -44,10 +44,16 @@ class rcube_session
private $secret = '';
private $ip_check = false;
private $logging = false;
- private $nowrite = false;
private $storage;
private $memcache;
+ /**
+ * Blocks session data from being written to database.
+ * Can be used if write-race conditions are to be expected
+ * @var boolean
+ */
+ public $nowrite = false;
+
/**
* Default constructor
@@ -730,16 +736,6 @@ class rcube_session
/**
- * Blocks session data from being written to database.
- * Can be used if write-race conditions are to be expected
- */
- function nowrite($block = true)
- {
- $this->nowrite = $block;
- }
-
-
- /**
* Check session authentication cookie
*
* @return boolean True if valid, False if not