Plugin Directory

Changeset 1971130


Ignore:
Timestamp:
11/08/2018 07:10:09 PM (7 years ago)
Author:
roba87
Message:

RoBa87: Bug fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • simple-multiple-featured-images/trunk/includes/class-smfi-dnd.php

    r1971107 r1971130  
    110110
    111111            try {
     112               
     113                if( empty( $img_ids ) ) {
     114                    return $img_ids;
     115                }
     116               
    112117                // Get the transmitted image positions.
    113118                $received_img_positions = $_POST[ 'smfi-img-pos' ];
     
    132137                $result = array_values( $combinedArray );
    133138                if( count( $result ) !== count( $img_ids ) ) {
    134                     throw new Exception( "Sorting failed for some reason." );
    135                 }
    136                 return $result;
     139                    //throw new Exception( "Sorting failed for some reason." );
     140                }
     141                return $img_ids;
    137142               
    138143            } catch ( Exception $exception ) {
Note: See TracChangeset for help on using the changeset viewer.