Closed (outdated)
Project:
Views Datasource
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Aug 2011 at 07:42 UTC
Updated:
12 Feb 2019 at 15:18 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mikeytown2 commented$options['author'] = array('default' => isset($user->name) ? $user->name : '', 'translatable' => FALSE);
Notice: Undefined variable: content_type in include() (line 21 of sites/all/modules/views_datasource/theme/views-views-xml-style-raw.tpl.php).
$content_type = isset($content_type) ? $content_type : 'text/xml';
Notice: Undefined property: view::$override_path in include() (line 14 of sites/all/modules/views_datasource/theme/views-views-xml-style-raw.tpl.php).
if (!empty($view->override_path)) {
Comment #2
ergonlogicSo far, I've only seen these two errors, referenced in #1:
The attached patch fixes them both.
Comment #3
rooby commentedThese 2 lines aren't equivalent.
Unless you can guarantee that if $view->override_path is either not set or not empty then this would be better:
if (isset($view->override_path) && $view->override_path) {The patch also doesn't fix the error in the issue title relating to $user->name.
Comment #4
zeip commentedDrupal 6 has been EOL for some years, closing all D6 issues. The changes have already been made to the D7 version.