diff --git a/turba/lib/Driver/Sql.php b/turba/lib/Driver/Sql.php index 51fa30a56c1..8ccf0c534f5 100644 --- a/turba/lib/Driver/Sql.php +++ b/turba/lib/Driver/Sql.php @@ -503,10 +503,10 @@ protected function _deleteAll($sourceName = null) ? array($GLOBALS['registry']->getAuth()) : array($sourceName); - if (empty($this->_params['map']['__owner'])) { + if (empty($this->map['__owner'])) { throw new Turba_Exception(_("Unable to find __owner field. Cannot delete.")); } - $owner_field = $this->_params['map']['__owner']; + $owner_field = $this->map['__owner']; /* Need a list of UIDs so we can notify History */ $query = sprintf('SELECT %s FROM %s WHERE %s = ?',