Ignore:
Timestamp:
Aug 13, 2007, 9:05:34 PM (17 years ago)
Author:
george
Message:

Aktualizace MaNGOS Minimanageru na verzi 0.1.4a.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • minimanager/scripts/global_lib.php

    r5 r19  
    137137}
    138138
     139//##########################################################################################
     140function aasort(&$array, $field, $order = false){
     141        if(is_string($field)) $field = "'$field'";
     142        $order = ($order ? '<' : '>');
     143        usort($array,
     144                create_function('$a, $b',
     145                'return ($a['.$field.'] == $b['.$field.'] ? 0 :($a['.$field.'] '.$order.' $b['.$field.']) ? 1 : -1);')
     146        );
     147}
    139148?>
Note: See TracChangeset for help on using the changeset viewer.