summaryrefslogtreecommitdiff
path: root/fml
diff options
context:
space:
mode:
authorfukachan <fukachan>2001-11-09 10:39:40 +0000
committerfukachan <fukachan>2001-11-09 10:39:40 +0000
commit74978f6bf024d8c01309ea323a68138ab999ec06 (patch)
tree112e8ed587715102a44bf7cf07f4c74f3f472128 /fml
parentbfa208614110157c7bcd20a5233e7e926601c64e (diff)
downloadfml8-74978f6bf024d8c01309ea323a68138ab999ec06.tar.gz
fml8-74978f6bf024d8c01309ea323a68138ab999ec06.tar.bz2
fml8-74978f6bf024d8c01309ea323a68138ab999ec06.zip
check defined( $id )
Diffstat (limited to 'fml')
-rw-r--r--fml/lib/FML/Process/Utils.pm9
1 files changed, 7 insertions, 2 deletions
diff --git a/fml/lib/FML/Process/Utils.pm b/fml/lib/FML/Process/Utils.pm
index 28bc6d84..0577fc74 100644
--- a/fml/lib/FML/Process/Utils.pm
+++ b/fml/lib/FML/Process/Utils.pm
@@ -4,7 +4,7 @@
# All rights reserved. This program is free software; you can
# redistribute it and/or modify it under the same terms as Perl itself.
#
-# $FML: Utils.pm,v 1.2 2001/11/05 13:01:00 fukachan Exp $
+# $FML: Utils.pm,v 1.3 2001/11/07 04:07:40 fukachan Exp $
#
package FML::Process::Utils;
@@ -106,7 +106,12 @@ sub article_id_max
$fh->close();
}
- return( $id =~ /^\d+$/ ? $id : 0 );
+ if (defined $id) {
+ return( $id =~ /^\d+$/ ? $id : 0 );
+ }
+ else {
+ return 0;
+ }
}