Commit 0109dbf0 authored by merlinofchaos's avatar merlinofchaos

#107218: Fixed some E_NOTICE errors.

parent 85bd6c10
......@@ -112,3 +112,4 @@ Views --dev
o 106460: Update of module weight was not run on install of 1.4, causing taxonomy/term view to not override Drupal default.
o 107974: Ensure file_revisions table is added to query when using 'node has files' filter.
o 107371: Correct spelling of 'weather' to 'whether'.
o 107218: Fixed some E_NOTICE errors.
......@@ -209,6 +209,7 @@ function views_query_handler_field_last_comment_name($field, $fieldinfo, &$query
}
function views_handler_field_last_comment_name($fieldinfo, $fielddata, $value, $data) {
$obj = new stdClass();
$obj->name = $value;
$uidfield = $fielddata['tablename'] . "_" . $fieldinfo['uid'];
$obj->uid = $data->$uidfield;
......@@ -259,6 +260,7 @@ function views_handler_field_commentlink_with_mark($fieldinfo, $fielddata, $valu
* Format a field as a comment
*/
function views_handler_field_comment($fieldinfo, $fielddata, $value, $data) {
$obj = new stdClass();
$obj->comment = check_markup($data->comments_comment, $data->comments_format, FALSE);
comment_invoke_comment($obj, 'view');
return $obj->comment;
......
......@@ -251,6 +251,7 @@ function views_handler_field_allterms($fieldinfo, $fielddata, $value, $data) {
}
}
else {
$node = new stdClass();
$node->taxonomy = $terms;
$links = taxonomy_link('taxonomy terms', $node);
}
......
......@@ -184,6 +184,7 @@ function user_views_query_substitutions($view) {
* specified in the field info.
*/
function views_handler_field_username($fieldinfo, $fielddata, $value, $data) {
$obj = new stdClass();
$uidfield = $fielddata['tablename'] . "_" . $fieldinfo['uid'];
if (!$value && $data->$uidfield) {
$obj = user_load(array('uid' => $data->$uidfield));
......
......@@ -335,7 +335,7 @@ function views_ui_admin_import_submit($formid, $form) {
ob_end_clean();
$tables = array_keys(_views_get_tables());
if ($view) {
if (isset($view)) {
if (!is_array($view->requires) || !array_diff($view->requires, $tables)) {
views_sanitize_view($view);
drupal_set_title(t('Add a View'));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment