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:
@@ -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 === '/') {
|
||||
|
Reference in New Issue
Block a user