summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEarl Miles2008-05-20 00:36:01 (GMT)
committer Earl Miles2008-05-20 00:36:01 (GMT)
commitca5a1c1feae4feca91f2e4cb265c2d6fec2e00a9 (patch)
tree7869a1b65810698c224451b0509d7d2c8d5ae478
parentf500465ab4d4020a3b5bf109281e70f5044529bd (diff)
#259905: Use of isset instead of empty when exploding arguments caused the "" argument to turn into an invalid argument, causing validation to fail when combined with ajax paging.
-rw-r--r--views.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/views.module b/views.module
index 1e3a8cd..d50ec88 100644
--- a/views.module
+++ b/views.module
@@ -343,7 +343,7 @@ function views_ajax() {
if (isset($_REQUEST['view_name']) && isset($_REQUEST['view_display_id'])) {
$name = $_REQUEST['view_name'];
$display_id = $_REQUEST['view_display_id'];
- $args = isset($_REQUEST['view_args']) ? explode('/', $_REQUEST['view_args']) : array();
+ $args = !empty($_REQUEST['view_args']) ? explode('/', $_REQUEST['view_args']) : array();
$path = isset($_REQUEST['view_path']) ? $_REQUEST['view_path'] : NULL;
views_include('ajax');
$object = new stdClass();