Update of /cvsroot/phpcoder/phpcoder
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6575
Modified Files:
coder-class.php
Log Message:
Initialize some more variables to avoid the notices when using E_ALL.
Index: coder-class.php
===================================================================
RCS file: /cvsroot/phpcoder/phpcoder/coder-class.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- coder-class.php 27 Jan 2004 13:34:12 -0000 1.2
+++ coder-class.php 6 Feb 2004 16:06:16 -0000 1.3
@@ -511,6 +511,7 @@
}
// build script expiration timestamp
+ $expire_stamp = 0;
if (!empty($rest['expire_value']) && is_numeric($rest['expire_value']) && !empty($rest['expire_unit'])) {
$expire_stamp = strtotime('+' . $rest['expire_value'] . ' ' . $rest['expire_unit']);
} elseif (!empty($rest['expire_english'])) {
@@ -634,6 +635,8 @@
function _ListValidFiles($file_dir)
{
+ $return = array();
+
if (!is_dir($file_dir)) {
die($file_dir . ' is not a directory');
}
|