yannick Mon Aug 28 13:02:12 2006 UTC
Modified files: /phpdoc/scripts reviewedcheck.php Log: resolv bug when there is 0 file without reviewed tag http://cvs.php.net/viewvc.cgi/phpdoc/scripts/reviewedcheck.php?r1=1.3&r2=1.4&diff_format=u Index: phpdoc/scripts/reviewedcheck.php diff -u phpdoc/scripts/reviewedcheck.php:1.3 phpdoc/scripts/reviewedcheck.php:1.4 --- phpdoc/scripts/reviewedcheck.php:1.3 Sun Aug 27 08:39:15 2006 +++ phpdoc/scripts/reviewedcheck.php Mon Aug 28 13:02:12 2006 @@ -133,8 +133,8 @@ // Sort the result -ksort($result['reviewed_no']); -ksort($result['no_tag']); +if( is_array($result['reviewed_no']) ) { ksort($result['reviewed_no']); } +if( is_array($result['no_tag']) ) { ksort($result['no_tag']); } // Rpint résult @@ -221,6 +221,8 @@ <th>Sizes<br />in kB</th> </tr>'; + +if( is_array($result['no_tag']) ) { // List files without reviewed's tag while( list($key, $val) = each($result['no_tag']) ) { @@ -245,6 +247,13 @@ } // end of while +} else { +echo ' +<tr class="old"> + <td colspan="2" class="c">No file</td> +</tr> +'; +} echo ' </table>