Changeset 932


Ignore:
Timestamp:
08/06/13 14:48:14 (7 years ago)
Author:
sil
Message:

Removed deprecated compare-function for array-sorting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.1/web/addons/job_monarch/overview.php

    r875 r932  
    211211    $sorted    = array();
    212212
    213     $cmp    = create_function( '$a, $b',
    214         "global \$sortby, \$sortorder;".
    215 
    216         "if( \$a == \$b ) return 0;".
    217 
    218         "if (\$sortorder==\"desc\")".
    219             "return ( \$a > \$b ) ? 1 : -1;".
    220         "else if (\$sortorder==\"asc\")".
    221             "return ( \$a < \$b ) ? 1 : -1;" );
    222 
    223213    if( isset( $jobs ) && count( $jobs ) > 0 )
    224214    {
Note: See TracChangeset for help on using the changeset viewer.