Changeset 2921


Ignore:
Timestamp:
Dec 4, 2008, 12:27:46 AM (15 years ago)
Author:
plg
Message:

bug 907 fixed: avoid PHP warning when pwg.images.add adds a photo in a
category that either contains no "ranked" image or when category is empty.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/include/ws_functions.inc.php

    r2918 r2921  
    16141614      foreach ($cat_ids as $cat_id)
    16151615      {
     1616        if (!isset($current_rank_of[$cat_id]))
     1617        {
     1618          $current_rank_of[$cat_id] = 0;
     1619        }
     1620       
    16161621        if ('auto' == $rank_on_category[$cat_id])
    16171622        {
Note: See TracChangeset for help on using the changeset viewer.