/[drupal]/contributions/modules/xmpp_server/includes/utility.php
ViewVC logotype

Diff of /contributions/modules/xmpp_server/includes/utility.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.2, Fri Sep 26 00:45:43 2008 UTC revision 1.3, Fri Sep 26 05:44:10 2008 UTC
# Line 65  function xmpp_get_uid_by_jid($jid) { Line 65  function xmpp_get_uid_by_jid($jid) {
65   *   The JID, serialized into a string.   *   The JID, serialized into a string.
66   */   */
67  function xmpp_serialize_jid($jid, $bare = false) {  function xmpp_serialize_jid($jid, $bare = false) {
68    if ($jid['resource'] && $bare === false) {    if ($bare === NULL) {
69        return "{$jid['name']}@{$jid['domain']}/*";
70      }
71      elseif ($jid['resource'] && $bare === false) {
72      return "{$jid['name']}@{$jid['domain']}/{$jid['resource']}";      return "{$jid['name']}@{$jid['domain']}/{$jid['resource']}";
73    }    }
74    elseif ($bare === true) {    else {
75      return "{$jid['name']}@{$jid['domain']}";      return "{$jid['name']}@{$jid['domain']}";
   } else {  
     return "{$jid['name']}@{$jid['domain']}/*";  
76    }    }
77  }  }
78    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.2