Changeset 12575


Ignore:
Timestamp:
Nov 7, 2011, 11:52:46 AM (12 years ago)
Author:
plg
Message:

bug 2491 fixed: on album admin screen, don't display "1 album moved" message
when the album is not really moved.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.3/admin/cat_modify.php

    r11041 r12575  
    7676  }
    7777
    78   if (isset($_POST['parent']) and $cat_info['id_uppercat'] != $_POST['parent'])
     78  // in case the use moves his album to the gallery root, we force
     79  // $_POST['parent'] from 0 to null to be compared with
     80  // $cat_info['id_uppercat']
     81  if (empty($_POST['parent']))
     82  {
     83    $_POST['parent'] = null;
     84  }
     85 
     86  if ($cat_info['id_uppercat'] != $_POST['parent'])
    7987  {
    8088    move_categories( array($_GET['cat_id']), $_POST['parent'] );
Note: See TracChangeset for help on using the changeset viewer.