Changeset 2922


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

merge r2921 from branch 2.0 to trunk

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
  • trunk/include/ws_functions.inc.php

    r2920 r2922  
    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.