Permalink
Browse files

Merge pull request #137 from Carpe-Hora/unavailable-explain

fixes error when explain is not available
  • Loading branch information...
2 parents 8d55e00 + 9c05ec2 commit c5adeadc462a3f0c6b609bdd85f6a2d3916e8a48 @willdurand willdurand committed Apr 27, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 modules/sfPropelORMExplain/actions/actions.class.php
@@ -19,6 +19,7 @@ public function executeIndex(sfWebRequest $request)
$this->results = $stmt->fetchAll(\PDO::FETCH_ASSOC);
} catch (Exception $e) {
$this->getResponse()->setContent('<div class="error">This query cannot be explained.</div>');
+ return sfView::NONE;
}
}
}

0 comments on commit c5adead

Please sign in to comment.