Making WordPress.org


Ignore:
Timestamp:
09/18/2015 09:51:40 AM (11 years ago)
Author:
dd32
Message:

Translate: Stats overview: Avoid a PHP notice when assigning the waiting counts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/translate.wordpress.org/includes/gp-plugins/wporg-stats-overview.php

    r1885 r1890  
    7272                                $locale_key = $set->locale . '/' . $set->locale_slug;
    7373                        }
     74
    7475                        $translation_locale_statuses[ $locale_key ][ $set->path ] = floor( (float) $set->percent_complete );
     76                        if ( ! isset( $translation_locale_statuses[ $locale_key ]['waiting'] ) ) {
     77                                $translation_locale_statuses[ $locale_key ]['waiting'] = 0;
     78                        }
    7579                        $translation_locale_statuses[ $locale_key ]['waiting'] += (int) $set->waiting_strings;
    7680                }
Note: See TracChangeset for help on using the changeset viewer.