From: Jan Schneider Date: Wed, 14 Apr 2010 10:23:51 +0000 (+0200) Subject: Cast sounds to string. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=2142f49a4211562c1f6dcf8face4f426966f855f;p=horde.git Cast sounds to string. --- diff --git a/kronolith/lib/Event.php b/kronolith/lib/Event.php index cd46241d0..438d45e40 100644 --- a/kronolith/lib/Event.php +++ b/kronolith/lib/Event.php @@ -1400,11 +1400,11 @@ abstract class Kronolith_Event if (!empty($methods['notify']['sound'])) { if ($methods['notify']['sound'] == 'on') { // Handle boolean sound preferences. - $methods['notify']['sound'] = Horde_Themes::sound('theetone.wav'); + $methods['notify']['sound'] = (string)Horde_Themes::sound('theetone.wav'); } else { // Else we know we have a sound name that can be // served from Horde. - $methods['notify']['sound'] = Horde_Themes::sound($methods['notify']['sound']); + $methods['notify']['sound'] = (string)Horde_Themes::sound($methods['notify']['sound']); } } if ($this->isAllDay()) { diff --git a/nag/lib/Task.php b/nag/lib/Task.php index 0bba901df..3527412a9 100644 --- a/nag/lib/Task.php +++ b/nag/lib/Task.php @@ -751,11 +751,11 @@ class Nag_Task { if (!empty($methods['notify']['sound'])) { if ($methods['notify']['sound'] == 'on') { // Handle boolean sound preferences; - $methods['notify']['sound'] = Horde_Themes::sound('theetone.wav'); + $methods['notify']['sound'] = (string)Horde_Themes::sound('theetone.wav'); } else { // Else we know we have a sound name that can be // served from Horde. - $methods['notify']['sound'] = Horde_Themes::sound($methods['notify']['sound']); + $methods['notify']['sound'] = (string)Horde_Themes::sound($methods['notify']['sound']); } } }