Skip to content

Commit

Permalink
cvs up (robustness in view args fetching)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandro Santilli committed Nov 10, 2010
1 parent 913487e commit e3eed58
Showing 1 changed file with 2 additions and 2 deletions.
@@ -1,5 +1,5 @@
<?php
// $Id: openlayers_views_vector.inc,v 1.1.2.8 2010/05/14 15:13:52 tmcw Exp $
// $Id: openlayers_views_vector.inc,v 1.1.2.9 2010/11/05 14:18:18 tmcw Exp $

/**
* @file
Expand Down Expand Up @@ -42,7 +42,7 @@ class openlayers_layer_type_openlayers_views_vector extends openlayers_layer_typ
// to pass on to our vector layer.
$current_view = views_get_current_view();
if (isset($current_view)) {
$args = $current_view->args;
$args = isset($current_view->args) ? $current_view->args : array();
if (isset($current_view->exposed_input)) {
$view->set_exposed_input($current_view->exposed_input);
}
Expand Down

0 comments on commit e3eed58

Please sign in to comment.