[horde] BUG: PHP ERROR: Undefined index: results [pid 6675 on line 950 of "/usr/share/php/Horde/ActiveSync/Request/Sync.php"]
Steffen
skhorde at smail.inf.fh-bonn-rhein-sieg.de
Fri Jun 28 06:50:03 UTC 2013
In Horde_ActiveSync 2.5.2 stable the error comes up when you delete
an event. The notice is issued in this line
if (is_array($results['results'])) {
I have therefore added a log message in the previous line.
$result seems to be a list of event ids and therefore 'result'
won't be found ever. Looks like bugs.horde.org allows only bug
reports for git version.
I guess you have to omit the ['result'] .
===
Jun 26 13:57:08 horde5beta HORDE: [horde] SKA: importMessageDeletion() = array (#012 0 => '20130626135614.JASPR3lDzO7VXV6_Cj-aOg1 at horde5.inf.fh-bonn-rhein-sieg.de',#012) [pid 6675 on line 949 of "/usr/share/php/Horde/ActiveSync/Request/Sync.php"]
Jun 26 13:57:08 horde5beta HORDE: [horde] PHP ERROR: Undefined index: results [pid 6675 on line 950 of "/usr/share/php/Horde/ActiveSync/Request/Sync.php"]
if (!empty($collection['deletesasmoves']) && $folderid = $this->_driver->getWasteBasket($collection['class'])) {
$results = $importer->importMessageMove($collection['removes'], $folderid);
} else {
$results = $importer->importMessageDeletion($collection['removes'], $collection['class']);
Horde::logMessage('SKA: importMessageDeletion() = ' . var_export($results, true)
, 'NOTICE');
//if (is_array($results['results'])) { // line 949
if (is_array($results)) {
$results['results'] = $results;
$results['missing'] = array_diff($collection['removes'], $results['results']);
}
--
Steffen
More information about the horde
mailing list