Fix object name.
authorJan Schneider <jan@horde.org>
Mon, 19 Apr 2010 09:55:04 +0000 (11:55 +0200)
committerJan Schneider <jan@horde.org>
Mon, 19 Apr 2010 11:26:40 +0000 (13:26 +0200)
turba/lib/Application.php

index 89c7df8..4663d2f 100644 (file)
@@ -322,18 +322,20 @@ class Turba_Application extends Horde_Registry_Application
      */
     public function prefsSpecialUpdate($ui, $item)
     {
+        global $prefs;
+
         switch ($item) {
         case 'addressbookselect':
             $data = Horde_Core_Prefs_Ui_Widgets::sourceUpdate($ui);
             if (isset($data['sources'])) {
-                $ui->setValue('addressbooks', $data['sources']);
+                $prefs->setValue('addressbooks', $data['sources']);
                 return true;
             }
             break;
 
         case 'columnselect':
             if (isset($ui->vars->columns)) {
-                $ui->setValue('columns', $ui->vars->columns);
+                $prefs->setValue('columns', $ui->vars->columns);
                 return true;
             }
             break;