Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/release-1.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
Drak committed Apr 19, 2012
2 parents 4a08fcb + d53fc6d commit ecb6b6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/system/Blocks/Api/AdminApi.php
Expand Up @@ -243,12 +243,12 @@ public function delete($args)

// delete block's placements and block itself
$entity = $this->name . '\Entity\BlockPlacement';
$dql = "DELETE FROM $entity p WHERE p.bid = {$block[bid]}";
$dql = "DELETE FROM $entity p WHERE p.bid = {$block['bid']}";
$query = $this->entityManager->createQuery($dql);
$query->getResult();

$entity = $this->name . '\Entity\Block';
$dql = "DELETE FROM $entity b WHERE b.bid = {$block[bid]}";
$dql = "DELETE FROM $entity b WHERE b.bid = {$block['bid']}";
$query = $this->entityManager->createQuery($dql);
$query->getResult();

Expand Down

0 comments on commit ecb6b6e

Please sign in to comment.