diff --git a/gkm/fetch.php b/gkm/fetch.php index 5ee8aad..3396120 100644 --- a/gkm/fetch.php +++ b/gkm/fetch.php @@ -6,7 +6,7 @@ $query = null; $ds = "fetchbasic"; -if (isset($_GET['details']) or in_array('details', $argv)) { +if (isset($_GET['details']) or isset($argv) && in_array('details', $argv)) { $query = query($session, 'fetch-details.xq'); $ds = "fetchdetails"; } else if (isset($_GET['master'])) {