Commit 03bbbdf8 authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-922 Always declare prefix.

 Released under the Affero GNU General Public License (AGPL) version 3.
parent fb649b4c
...@@ -79,10 +79,10 @@ class PHPWrapper { ...@@ -79,10 +79,10 @@ class PHPWrapper {
$this->store = $store; $this->store = $store;
$this->mapiprovider = new MAPIProvider($session, $this->store); $this->mapiprovider = new MAPIProvider($session, $this->store);
$this->folderid = $folderid; $this->folderid = $folderid;
$this->prefix = '';
if ($folderid) { if ($folderid) {
$folderidHex = bin2hex($folderid); $folderidHex = bin2hex($folderid);
$this->prefix = '';
$folderid = ZPush::GetDeviceManager()->GetFolderIdForBackendId($folderidHex); $folderid = ZPush::GetDeviceManager()->GetFolderIdForBackendId($folderidHex);
if ($folderid != $folderidHex) { if ($folderid != $folderidHex) {
$this->prefix = $folderid . ':'; $this->prefix = $folderid . ':';
......
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