From afe3b0a07f8b3e8247a85dcc0d0f0409218d3e0f Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Mon, 19 Dec 2011 10:08:02 +0000 Subject: [PATCH] * infolog/esync: fix for -> tasks created on device where set to completed all the time <- --- infolog/inc/class.infolog_activesync.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infolog/inc/class.infolog_activesync.inc.php b/infolog/inc/class.infolog_activesync.inc.php index d7094598da..972caa6822 100644 --- a/infolog/inc/class.infolog_activesync.inc.php +++ b/infolog/inc/class.infolog_activesync.inc.php @@ -404,7 +404,7 @@ class infolog_activesync implements activesync_plugin_write break; case 'info_status': // 0 or 1 in AS --> do NOT change infolog status, if it maps to identical completed boolean value - if (in_array($infolog[$attr], self::$done_status) !== (boolean)$message->$key) + if ((in_array($infolog[$attr], self::$done_status) !== (boolean)$message->$key) || !isset($infolog[$attr])) { $infolog[$attr] = $message->$key ? 'done' : 'not-started'; if (!(boolean)$message->$key) $infolog['info_percent'] = 0;