From 15ea1b59619feca4efa2537d182553d87ebbc7c7 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Mon, 24 May 2010 13:45:03 -0400 Subject: [PATCH] need to cast to string before serializing --- horde/lib/Prefs/Ui.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/horde/lib/Prefs/Ui.php b/horde/lib/Prefs/Ui.php index b80b1f860..3346dd3fb 100644 --- a/horde/lib/Prefs/Ui.php +++ b/horde/lib/Prefs/Ui.php @@ -233,7 +233,7 @@ class Horde_Prefs_Ui * frame. */ if ($old_sidebar) { Horde::addInlineScript( - 'window.parent.frames.location = ' . Horde_Serialize::serialize($url, Horde_Serialize::JSON, Horde_Nls::getCharset()) . ';' + 'window.parent.frames.location = ' . Horde_Serialize::serialize((string)$url, Horde_Serialize::JSON, Horde_Nls::getCharset()) . ';' ); } else { Horde::redirect($url); -- 2.11.0