From 17acd5ccda5b23792477891ab969b378cacbbaf2 Mon Sep 17 00:00:00 2001
From: Thomas Bruederli <thomas@roundcube.net>
Date: Tue, 27 May 2014 13:51:04 -0400
Subject: [PATCH] Use public property instead of setter method to improve compatibility
---
program/lib/Roundcube/rcube_session.php | 18 +++++++-----------
1 files changed, 7 insertions(+), 11 deletions(-)
diff --git a/program/lib/Roundcube/rcube_session.php b/program/lib/Roundcube/rcube_session.php
index f04f47a..26f7843 100644
--- a/program/lib/Roundcube/rcube_session.php
+++ b/program/lib/Roundcube/rcube_session.php
@@ -44,9 +44,15 @@
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;
/**
@@ -726,16 +732,6 @@
if ($cookiename) {
$this->cookiename = $cookiename;
}
- }
-
-
- /**
- * 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;
}
--
Gitblit v1.9.1