While a good idea in concept, this is a PHP parse error
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 3 Aug 2010 23:14:50 +0000 (17:14 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 4 Aug 2010 20:07:19 +0000 (14:07 -0600)
horde/services/problem.php
kronolith/delete.php

index aa8a960..de5fb96 100644 (file)
@@ -11,7 +11,8 @@
 /* Send the browser back to the correct page. */
 function _returnToPage()
 {
-    (new Horde_Url(Horde_Util::getFormData('return_url', Horde::url($GLOBALS['registry']->get('webroot', 'horde') . '/login.php', true))))->redirect();
+    $url = new Horde_Url(Horde_Util::getFormData('return_url', Horde::url($GLOBALS['registry']->get('webroot', 'horde') . '/login.php', true)));
+    $url->redirect();
 }
 
 require_once dirname(__FILE__) . '/../lib/Application.php';
index d2bfc85..fd7178e 100644 (file)
@@ -29,8 +29,10 @@ if ($eventID = Horde_Util::getFormData('eventID')) {
     } catch(Exception $e) {
         if (($url = Horde_Util::getFormData('url')) === null) {
             $url = Horde::applicationUrl($prefs->getValue('defaultview') . '.php', true);
+        } else {
+            $url = new Horde_Url($url);
         }
-        (new Horde_Url($url))->redirect();
+        $url->redirect();
     }
     if ($driver != 'Resource') {
         $share = $kronolith_shares->getShare($event->calendar);