summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--devel_node_access.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/devel_node_access.module b/devel_node_access.module
index da6146f..dbf8146 100644
--- a/devel_node_access.module
+++ b/devel_node_access.module
@@ -746,8 +746,8 @@ function devel_node_access_node_access_explain($row) {
*/
function _devel_node_access_get_node_title($node, $clip_and_decorate = TRUE) {
if (isset($node)) {
- if (isset($node->title[FIELD_LANGUAGE_NONE][0]['value'])) {
- $node_title = check_plain($node->title[FIELD_LANGUAGE_NONE][0]['value']);
+ if (isset($node->title)) {
+ $node_title = check_plain($node->title);
if ($clip_and_decorate) {
if (drupal_strlen($node_title) > 20) {
$node_title = "<span title='node/$node->nid: $node_title'>" . drupal_substr($node_title, 0, 15) . '...</span>';