For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > August 2006 > cvs: phpdoc /scripts reviewedcheck.php









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: phpdoc /scripts reviewedcheck.php
Yannick Torres

2006-08-28, 7:57 am

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/phpdo...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>
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com