Changeset 8966


Ignore:
Timestamp:
Jan 28, 2011, 11:54:22 PM (13 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.