1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-24 13:52:56 +02:00

fix(site-plugin): notice for undefined $query['format'] #234

This commit is contained in:
Awilum
2019-09-14 21:21:57 +03:00
parent 806b18eb1e
commit 8bde8eb83c

View File

@@ -41,7 +41,7 @@ class SiteController extends Controller
$uri = $args['uri'];
// Is JSON Format
$is_json = ($query['format'] && $query['format'] == 'json') ? true : false;
$is_json = (isset($query['format']) && $query['format'] == 'json') ? true : false;
// If uri is empty then it is main page else use entry uri
if ($uri === '/') {