Fix creation of of default share
authorMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 6 Oct 2010 19:44:43 +0000 (15:44 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 6 Oct 2010 19:45:30 +0000 (15:45 -0400)
turba/lib/Turba.php

index 1437acb..c57cdb1 100644 (file)
@@ -444,7 +444,7 @@ class Turba {
             if ($GLOBALS['registry']->getAuth() && empty($defaults[$source])) {
                 // User's default share is missing.
                 try {
-                    $driver = $GLOBALS['injector']->getInstance('Turba_Driver')->getDriver($sourceId);
+                    $driver = $GLOBALS['injector']->getInstance('Turba_Driver')->getDriver($source);
                 } catch (Turba_Exception $e) {
                     $notification->push($driver, 'horde.error');
                     continue;