It is essential because if $ratings is not isset foreach returns a warning.


2014-03-22 16:56 GMT+02:00 Dionysis Zindros <notifications@github.com>:

> In views/home.php:
>
> > @@ -17,35 +17,37 @@
> >      </thead>
> >      <tbody>
> >          <?php
> > -            foreach ( $ratings as $rating => $users ) {
> > -                if ( $rating > 10 ) {
> > -                    break;
> > -                }
> > -                foreach ( $users as $user ) {
> > -                    if ( !isset( $user->country->name ) ) {
> > -                        $countryName = "unknown";
> > +            if ( isset( $ratings ) ) {
>
> isset is redundant
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/dionyziz/endofcodes/pull/161/files#r10862575>
> .
>