From 4982106f2ff370b68847668aba06c4889028a46f Mon Sep 17 00:00:00 2001
From: Marco Abiuso <marco.abiuso.questar@1315794.no-reply.drupal.org>
Date: Wed, 28 Mar 2012 15:44:10 +0200
Subject: [PATCH] Issue #1381562: fixed changing che display_id variable passed to the access function

---
 plugins/views/views_php_plugin_access.inc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
 mode change 100644 => 100755 plugins/views/views_php_plugin_access.inc

diff --git a/plugins/views/views_php_plugin_access.inc b/plugins/views/views_php_plugin_access.inc
old mode 100644
new mode 100755
index 12e1c83..b44ec0e
--- a/plugins/views/views_php_plugin_access.inc
+++ b/plugins/views/views_php_plugin_access.inc
@@ -53,7 +53,7 @@ class views_php_plugin_access extends views_plugin_access {
    */
   function access($account) {
     if (!empty($this->options['php_access'])) {
-      return views_php_check_access($this->options['php_access'], $this->view->name, $this->view->current_display, $account);
+      return views_php_check_access($this->options['php_access'], $this->view->name, $this->display->id, $account);
     }
     return TRUE;
   }
@@ -63,7 +63,7 @@ class views_php_plugin_access extends views_plugin_access {
    */
   function get_access_callback() {
     if (!empty($this->options['php_access'])) {
-      return array('views_php_check_access', array($this->options['php_access'], $this->view->name, $this->view->current_display));
+      return array('views_php_check_access', array($this->options['php_access'], $this->view->name, $this->display->id));
     }
     return TRUE;
   }
-- 
1.7.0.4

