Skip to content

Commit

Permalink
Fixing AjaxRouteHandler.
Browse files Browse the repository at this point in the history
  • Loading branch information
virgofx committed Jul 22, 2017
1 parent 32ac1fb commit 3dbf8e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
[![Software License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://raw.githubusercontent.com/techpivot/phalcon-enterprise/master/LICENSE)

techpivot/phalcon-enterprise is a set of tools, plugins, and components that provide extended enterprise
functionality for the Phalcon PHP framework. This project provides functionality similar to that of the
[Phalcon Incubator](https://github.com/phalcon/incubator); however, all adapters and plugins are designed to run
in production with parity against the current stable and mainline Phalcon versions.
functionality for the Phalcon PHP framework.


## Installation via Composer
Expand Down
2 changes: 1 addition & 1 deletion src/Dispatcher/Plugins/AjaxRouteHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function afterExecuteRoute(Event $event, Dispatcher $dispatcher)

/** @var \Phalcon\Http\Response $response */
$response = $this->getDI()->getShared('response');
if ($response->isSent() === false && $response->getStatusCode() === false) {
if ($response->isSent() === false && $response->getStatusCode() === null) {
$data = $dispatcher->getReturnedValue();

if ($data === null) {
Expand Down

0 comments on commit 3dbf8e4

Please sign in to comment.