Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove double negations

  • Loading branch information...
commit ea669b27cd5b2aa32acda26d52208c7abf49cb04 1 parent f8eb027
@weierophinney authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 library/Zend/Mvc/Controller/AbstractRestfulController.php
View
4 library/Zend/Mvc/Controller/AbstractRestfulController.php
@@ -286,7 +286,7 @@ public function onDispatch(MvcEvent $e)
// HEAD
case 'head':
$id = $this->getIdentifier($routeMatch, $request);
- if (!$id !== false) {
+ if ($id !== false) {
@Maks3w
Maks3w added a note

This change need a specific test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
$id = null;
}
$action = 'head';
@@ -304,7 +304,7 @@ public function onDispatch(MvcEvent $e)
// PATCH
case 'patch':
$id = $this->getIdentifier($routeMatch, $request);
- if (!$id !== false) {
+ if ($id === false) {
throw new Exception\DomainException('Missing identifier');
}
$data = $this->processBodyContent($request);
Please sign in to comment.
Something went wrong with that request. Please try again.