techtonik Fri Apr 1 19:08:46 2005 EDT
Modified files:
/phpdoc/scripts dbtags.php
Log:
fix php notices and bump year
http://cvs.php.net/diff.php/phpdoc/scripts/dbtags.php?r1=1.4&r2=1.5&ty=u
Index: phpdoc/scripts/dbtags.php
diff -u phpdoc/scripts/dbtags.php:1.4 phpdoc/scripts/dbtags.php:1.5
--- phpdoc/scripts/dbtags.php:1.4 Sun Oct 31 16:20:16 2004
+++ phpdoc/scripts/dbtags.php Fri Apr 1 19:08:43 2005
@@ -4,7 +4,7 @@
+----------------------------------------------------------------------+
| PHP Version 4 |
+----------------------------------------------------------------------+
- | Copyright (c) 1997-2004 The PHP Group |
+ | Copyright (c) 1997-2005 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.0 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -17,10 +17,10 @@
| Authors: Gabor Hojtsy <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
- $Id: dbtags.php,v 1.4 2004/10/31 21:20:16 techtonik Exp $
+ $Id: dbtags.php,v 1.5 2005/04/02 00:08:43 techtonik Exp $
*/
-if ($argc > 2 || in_array($argv[1], array('--help', '-help', '-h', '-?'))) {
+if ($argc > 2 || (isset($argv[1]) && in_array($argv[1], array('--help',
'-help', '-h', '-?')))) {
?>
Process XML files for used DocBook tags
@@ -127,7 +127,11 @@
// New occurences found, so increase the number
foreach ($tags_found[1] as $tag_name) {
- $used_tags[$tag_name]++;
+ if (isset($used_tags[$tag_name])) {
+ $used_tags[$tag_name]++;
+ } else {
+ $used_tags[$tag_name] = 1;
+ }
}
} // check_file() function end