Plugin Directory

Changeset 511339


Ignore:
Timestamp:
02/27/2012 07:11:11 PM (14 years ago)
Author:
Strunker
Message:

Fixes a bug when no stories are returned.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • polizeipresse/trunk/widget.php

    r508487 r511339  
    5555        }
    5656
    57         // Stories are returned in chronological order. So reverse order to display newsest first.
    58         $stories = array_reverse($stories);
     57        // Show stories
     58        if ($stories) {
     59            // Stories are returned in chronological order. So reverse order to display newsest first.
     60            $stories = array_reverse($stories);
    5961
    60         // Show stories
    61         if ($stories != null) {
    6262            print('<ul>');
    6363            $counter = 0;
Note: See TracChangeset for help on using the changeset viewer.