Changeset 8966


Ignore:
Timestamp:
01/28/11 23:54:22 (9 years ago)
Author:
plg
Message:

bug 2142 fixed: make sure you cannot move a category into itself

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/admin/include/functions.php

    r8240 r8966  
    10411041      // technically, you can't move a category with uppercats 12,125,13,14 
    10421042      // into a new parent category with uppercats 12,125,13,14,24 
    1043       if (preg_match('/^'.$category['uppercats'].',/', $new_parent_uppercats)) 
     1043      if (preg_match('/^'.$category['uppercats'].'(,|$)/', $new_parent_uppercats)) 
    10441044      { 
    10451045        array_push( 
Note: See TracChangeset for help on using the changeset viewer.