Commit 92031424 authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-717 Don't use $props as it is used before.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 15b94262
...@@ -512,20 +512,20 @@ class BackendZarafa implements IBackend, ISearchProvider { ...@@ -512,20 +512,20 @@ class BackendZarafa implements IBackend, ISearchProvider {
// update icon and last_verb when forwarding or replying message // update icon and last_verb when forwarding or replying message
// reply-all (verb 103) is not supported, as we cannot really detect this case // reply-all (verb 103) is not supported, as we cannot really detect this case
if ($sm->forwardflag) { if ($sm->forwardflag) {
$props = array( $updateProps = array(
PR_ICON_INDEX => 262, PR_ICON_INDEX => 262,
PR_LAST_VERB_EXECUTED => 104, PR_LAST_VERB_EXECUTED => 104,
); );
} }
elseif ($sm->replyflag) { elseif ($sm->replyflag) {
$props = array( $updateProps = array(
PR_ICON_INDEX => 261, PR_ICON_INDEX => 261,
PR_LAST_VERB_EXECUTED => 102, PR_LAST_VERB_EXECUTED => 102,
); );
} }
if (isset($props)) { if (isset($updateProps)) {
$props[PR_LAST_VERB_EXECUTION_TIME] = time(); $updateProps[PR_LAST_VERB_EXECUTION_TIME] = time();
mapi_setprops($fwmessage,$props); mapi_setprops($fwmessage, $updateProps);
mapi_savechanges($fwmessage); mapi_savechanges($fwmessage);
} }
......
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