Przeglądaj źródła

Stopped using warning suppression.

Andrew Collington 10 lat temu
rodzic
commit
aa41e5ad97
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      index.php

+ 1 - 1
index.php

@@ -65,7 +65,7 @@ class OpCacheService
             } else if (isset($_GET['invalidate']) && $self->getOption('allow_invalidate')) {
             } else if (isset($_GET['invalidate']) && $self->getOption('allow_invalidate')) {
                 echo '{ "success": "' . ($self->resetCache($_GET['invalidate']) ? 'yes' : 'no') . '" }';
                 echo '{ "success": "' . ($self->resetCache($_GET['invalidate']) ? 'yes' : 'no') . '" }';
             } else {
             } else {
-                echo json_encode($self->getData(@$_GET['section'] ?: null));
+                echo json_encode($self->getData((empty($_GET['section']) ? null : $_GET['section'])));
             }
             }
             exit;
             exit;
         } else if (isset($_GET['reset']) && $self->getOption('allow_invalidate')) {
         } else if (isset($_GET['reset']) && $self->getOption('allow_invalidate')) {