6.0.0-beta1
7/5/25

[#9277] Missing return parameter in Nokia.php
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

History
10/05/2010 09:24:47 PM Michael Rubinsky State ⇒ Resolved
 
10/05/2010 09:22:14 PM CVS Commit Comment #2 Reply to this comment
Changes have been made in CVS for this ticket:

Fix return data structure
Bug: 9277
Submitted 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
10/05/2010 03:52:09 PM Michael Rubinsky Assigned to Michael Rubinsky
State ⇒ Assigned
 
09/30/2010 06:34:26 PM fabio (dot) bas (at) officineinformatiche (dot) net Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Missing return parameter in Nokia.php
Queue ⇒ Horde Base
Milestone ⇒
Patch ⇒ Yes
State ⇒ Unconfirmed
Reply to this comment
In lib/SyncML/Device/Nokia.php, from  function convertServer2Client:
---
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);
---

Saved Queries