added site-view switch to allow default public access if access is set on the site view as explained in gh-113

This commit is contained in:
2017-08-22 23:17:19 +01:00
parent 9c1ee3e88a
commit cfc1af2b69
233 changed files with 537 additions and 307 deletions

View File

@ -1488,13 +1488,13 @@ class Get
// add_sql
if ($view->add_sql == 1)
{
if ($view->source == 1)
if ($view->source == 1 && isset($view->tables))
{
// build and add the SQL dump
$this->customScriptBuilder['sql'][$name_single] = $this->buildSqlDump($view->tables,$name_single, $id);
unset($view->tables);
}
elseif ($view->source == 2)
elseif ($view->source == 2 && isset($view->sql))
{
// add the SQL dump string
$this->customScriptBuilder['sql'][$name_single] = base64_decode($view->sql);