[Openfirst-cvscommit] base/config version.php,1.8,1.9
Brought to you by:
xtimg
From: Astronouth7303 <ast...@us...> - 2005-03-13 20:45:50
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20065/config Modified Files: version.php Log Message: is_array() used. Now takes forever to work Index: version.php =================================================================== RCS file: /cvsroot/openfirst/base/config/version.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** version.php 31 Jul 2004 18:05:22 -0000 1.8 --- version.php 13 Mar 2005 20:45:39 -0000 1.9 *************** *** 41,45 **** $aFiles = glob("$sDir/$sPattern", $nFlags); ! if (isarray($aFiles)) { foreach (glob("$sDir/*", GLOB_ONLYDIR) as $sSubDir) { --- 41,45 ---- $aFiles = glob("$sDir/$sPattern", $nFlags); ! if (is_array($aFiles)) { foreach (glob("$sDir/*", GLOB_ONLYDIR) as $sSubDir) { *************** *** 48,52 **** if(! is_link($sSubDir)) { $aSubFiles = rglob($sSubDir, $sPattern, $nFlags); ! if(isarray($aFiles) && isarray($aSubFiles)) { $aFiles = array_merge($aFiles, $aSubFiles); } --- 48,52 ---- if(! is_link($sSubDir)) { $aSubFiles = rglob($sSubDir, $sPattern, $nFlags); ! if(is_array($aFiles) && is_array($aSubFiles)) { $aFiles = array_merge($aFiles, $aSubFiles); } *************** *** 87,91 **** echo("<p>The version information requires the <strong>glob</strong> function, which your version of PHP does not have. In the future there will be version for systems without ! <strong>glob</strong> glob functionality, but at the moment only a <strong>glob</strong> version is provided.</p>"); } --- 87,91 ---- echo("<p>The version information requires the <strong>glob</strong> function, which your version of PHP does not have. In the future there will be version for systems without ! <strong>glob</strong> functionality, but at the moment only a <strong>glob</strong> version is provided.</p>"); } |