list_supermasters.php
changeset 15 305cee3b388d
parent 13 2ff220cfde13
child 47 ae140472d97c
equal deleted inserted replaced
14:2093cbe1133e 15:305cee3b388d
    12 } 
    12 } 
    13 else
    13 else
    14 {
    14 {
    15 
    15 
    16 	$supermasters = get_supermasters(0);
    16 	$supermasters = get_supermasters(0);
    17 	$num_supermasters = count($supermasters);
    17 	$num_supermasters = ($supermasters == -1) ? 0 : count($supermasters);
    18 	if ($supermasters < 0)
       
    19 	{
       
    20 		$num_supermasters = "0";
       
    21 	}
       
    22 	else
       
    23 	{
       
    24 		$num_supermasters = count($supermasters);
       
    25 	}
       
    26 
       
    27 	?>
    18 	?>
    28 
    19 
    29 	   <h3><? printf(_('List all %s supermasters'), $num_supermasters); ?></h3>
    20 	   <h3><? printf(_('List all %s supermasters'), $num_supermasters); ?></h3>
    30 	   <table>
    21 	   <table>
    31 	    <tr>
    22 	    <tr>