From: Ben Klang Date: Sat, 2 Jan 2010 18:46:54 +0000 (-0500) Subject: Shout: Trim off the channel type from device names X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=dd28b3132c51cbeb50932e599b00ebfc72a116e3;p=horde.git Shout: Trim off the channel type from device names --- diff --git a/shout/lib/Driver/Ldap.php b/shout/lib/Driver/Ldap.php index bef003c5f..3414a230f 100644 --- a/shout/lib/Driver/Ldap.php +++ b/shout/lib/Driver/Ldap.php @@ -123,8 +123,9 @@ class Shout_Driver_Ldap extends Shout_Driver $res[$i]['astextension']['count'] = -1; } while ($j < $res[$i]['astextension']['count']) { - $entries[$context][$extension]['devices'][] = - $res[$i]['astextension'][$j]; + // Trim off the Asterisk channel type from the device string + $device = explode('/', $res[$i]['astextension'][$j], 2); + $entries[$context][$extension]['devices'][] = $device[1]; $j++; }