Plugin Directory

Changeset 2056376


Ignore:
Timestamp:
03/24/2019 07:22:31 PM (7 years ago)
Author:
danillonunes
Message:

Avoid error when total is not returned

File:
1 edited

Legend:

Unmodified
Added
Removed
  • makemydonation-imo/trunk/template.php

    r2055658 r2056376  
    210210  $display_attributes = array_merge($default_display_attributes, $display_attributes);
    211211
    212   if ( $post->ID && $donations['total'] ) {
     212  if ( $post->ID && isset($donations['total']) && $donations['total'] ) {
    213213    $list = '<ul class="mmdimo-donations-list">';
    214214
Note: See TracChangeset for help on using the changeset viewer.