diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 08332c0a29e42c5ce2d09b5b3ca95317f5546bce..7ea5defcb230ae173a5ba2d3417e6d1eac6a436a 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -98,3 +98,4 @@ Views 4.7.x-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. \ No newline at end of file diff --git a/modules/views_comment.inc b/modules/views_comment.inc index b8b7bed8bc432a2388679cd42d9f538d8a9bd3a4..e36c9f4902f7701e6b9a57b9ca5e9b367ff58716 100644 --- a/modules/views_comment.inc +++ b/modules/views_comment.inc @@ -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; @@ -247,6 +248,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; diff --git a/modules/views_taxonomy.inc b/modules/views_taxonomy.inc index 13d5ccd8578377937cbf86c4461691b2a47c5830..0858787472bbe5c19cc1a20a34fcb70fe20d1712 100644 --- a/modules/views_taxonomy.inc +++ b/modules/views_taxonomy.inc @@ -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); } diff --git a/modules/views_user.inc b/modules/views_user.inc index 009080050ada6226f5938b447100a7a276c77878..53dfc5a6a8f95fae78278e69da86169c8af57d09 100644 --- a/modules/views_user.inc +++ b/modules/views_user.inc @@ -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(); $obj->name = $value; $uidfield = $fielddata['tablename'] . "_" . $fieldinfo['uid']; $obj->uid = $data->$uidfield; diff --git a/views_ui.module b/views_ui.module index 6a6efe6226ff09c80f3d57d33df7b9e085e38422..b8a27b903acd31ab0adef5fb353a6c44aeb6f265 100644 --- a/views_ui.module +++ b/views_ui.module @@ -349,7 +349,7 @@ function views_import_view_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')); @@ -679,6 +679,7 @@ function _views_view_form($view, $op = '') { _views_check_arrays($view); // make sure arrays that might be empty get set // Put in all our add buttons, then process them to see if they've been hit. + $form = array(); views_ui_add_add_button($form, 'field', _views_get_fields(true), t('Add Field')); views_ui_add_add_button($form, 'argument', _views_get_arguments(true), t('Add Argument')); views_ui_add_add_button($form, 'filter', _views_get_filters(true), t('Add Filter'));