Summary | Missing return parameter in Nokia.php |
Queue | Horde Base |
Queue Version | 3.3.9 |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | mrubinsk (at) horde (dot) org |
Requester | fabio.bas (at) officineinformatiche (dot) net |
Created | 09/30/2010 (5392 days ago) |
Due | |
Updated | 10/05/2010 (5387 days ago) |
Assigned | 10/05/2010 (5387 days ago) |
Resolved | 10/05/2010 (5387 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | Yes |
MFB - fix return data structure
Bug: 9277http://git.horde.org/diff.php/framework/SyncML/SyncML/Device/Nokia.php?rt=horde-git&r1=4d249a3af4faea6509fe8da806264dd5d87ab4e5&r2=ab2e92f65a0842c9d2b985e7bae960b1c915fd31
Fix return data structure
Bug: 9277Submitted by: fabio (dot) bas (at) officineinformatiche (dot) net
http://cvs.horde.org/diff.php/framework/SyncML/SyncML/Device/Nokia.php?rt=horder1=1.2.2.12r2=1.2.2.13ty=u
State ⇒ Assigned
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Missing return parameter in Nokia.php
Queue ⇒ Horde Base
Milestone ⇒
Patch ⇒ Yes
State ⇒ Unconfirmed
---
return array($content, $contentType);
---
This function overloads the parent function in lib/SyncML/Device.php,
that returns a 3-values array:
---
return array($content, $contentType, null);
---
This causes a php notice:
---
PHP Notice: Undefined offset: 2
---
The function itself is called in lib/SyncML/Sync.php, in function
"createSyncOutput"
---
list($clientContent, $clientContentType,
$clientEncodingType) =
$device->convertServer2Client($c, $contentType, $syncDB);
---