|
@@ -9,10 +9,9 @@ include "php/phplot/phplot.php";
|
|
|
//possible values for page views
|
|
|
$pages = array('table');
|
|
|
|
|
|
-if(!(isset($_GET['pg']))){
|
|
|
- $page = "stats";
|
|
|
-} else {
|
|
|
- if(in_array($_GET['pg'],$pages)) $page = $_GET['pg'];
|
|
|
+$page = "stats";
|
|
|
+if(isset($_GET['pg']) && in_array($_GET['pg'],$pages)) {
|
|
|
+ $page = $_GET['pg'];
|
|
|
}
|
|
|
|
|
|
?>
|