| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8dca4b3 commit 29975a2
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -368,6 +368,12 @@ public function response($data = array(), $http_code = null) | |||
| 368 | 368 | $output = NULL; | |
| 369 | 369 | } | |
| 370 | 370 | ||
| 371 | + // If data is empty but http code provided, keep the output empty | ||
| 372 | + else if (empty($data) && is_numeric($http_code)) | ||
| 373 | + { | ||
| 374 | + $output = NULL; | ||
| 375 | + } | ||
| 376 | + | ||
| 371 | 377 | // Otherwise (if no data but 200 provided) or some data, carry on camping! | |
| 372 | 378 | else | |
| 373 | 379 | { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments