summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--views.module4
1 files changed, 4 insertions, 0 deletions
diff --git a/views.module b/views.module
index 14bc2fe..a00761d 100644
--- a/views.module
+++ b/views.module
@@ -1658,6 +1658,10 @@ function _views_save_view($view) {
$view->sql = $info['sql'];
$view->countsql = $info['countsql'];
}
+ else {
+ $view->sql = NULL;
+ $view->countsql = NULL;
+ }
// collapse arrays
if (is_array($view->filter_nodetypes))