Navigation Menu

Skip to content

Commit

Permalink
Bug #14145: Fix deleteAll for Sql driver.
Browse files Browse the repository at this point in the history
Signed-off-by: Michael J Rubinsky <mrubinsk@horde.org>
  • Loading branch information
Guenter Bartsch authored and mrubinsk committed Oct 28, 2015
1 parent a550f44 commit d016746
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions turba/lib/Driver/Sql.php
Expand Up @@ -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 = ?',
Expand Down

0 comments on commit d016746

Please sign in to comment.