Commit 24daddd0 authored by skummer's avatar skummer

ZP-270 #comment indirect modification of StateObject instance variable throws warnings #time 15m

git-svn-id: https://z-push.org/svn/z-push/trunk@1499 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent f8dd959f
...@@ -260,7 +260,9 @@ class SyncParameters extends StateObject { ...@@ -260,7 +260,9 @@ class SyncParameters extends StateObject {
// remove potential old default CPO if available // remove potential old default CPO if available
if (isset($this->contentParameters[self::DEFAULTOPTIONS]) && $options != self::DEFAULTOPTIONS && $options !== self::SMSOPTIONS) { if (isset($this->contentParameters[self::DEFAULTOPTIONS]) && $options != self::DEFAULTOPTIONS && $options !== self::SMSOPTIONS) {
unset($this->contentParameters[self::DEFAULTOPTIONS]); $a = $this->contentParameters;
unset($a[self::DEFAULTOPTIONS]);
$this->contentParameters = $a;
ZLog::Write(LOGLEVEL_DEBUG, "SyncParameters->UseCPO(): removed existing DEFAULT CPO as it is obsolete"); ZLog::Write(LOGLEVEL_DEBUG, "SyncParameters->UseCPO(): removed existing DEFAULT CPO as it is obsolete");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment