Fix: Removed warnings
This commit is contained in:
parent
714ca928f7
commit
43a0f4e29b
@ -530,7 +530,7 @@ function listOfSessions()
|
|||||||
$sessPath = ini_get("session.save_path").'/';
|
$sessPath = ini_get("session.save_path").'/';
|
||||||
dol_syslog('admin.lib:listOfSessions sessPath='.$sessPath);
|
dol_syslog('admin.lib:listOfSessions sessPath='.$sessPath);
|
||||||
|
|
||||||
$dh = @opendir($sessPath);
|
$dh = @opendir(dol_osencode($sessPath));
|
||||||
if ($dh)
|
if ($dh)
|
||||||
{
|
{
|
||||||
while(($file = @readdir($dh)) !== false)
|
while(($file = @readdir($dh)) !== false)
|
||||||
@ -579,7 +579,7 @@ function purgeSessions($mysessionid)
|
|||||||
dol_syslog('admin.lib:purgeSessions mysessionid='.$mysessionid.' sessPath='.$sessPath);
|
dol_syslog('admin.lib:purgeSessions mysessionid='.$mysessionid.' sessPath='.$sessPath);
|
||||||
|
|
||||||
$error=0;
|
$error=0;
|
||||||
$dh = @opendir($sessPath);
|
$dh = @opendir(dol_osencode($sessPath));
|
||||||
while(($file = @readdir($dh)) !== false)
|
while(($file = @readdir($dh)) !== false)
|
||||||
{
|
{
|
||||||
if ($file != "." && $file != "..")
|
if ($file != "." && $file != "..")
|
||||||
@ -640,7 +640,7 @@ function Activate($value,$withdeps=1)
|
|||||||
|
|
||||||
if ($type == 'alt')
|
if ($type == 'alt')
|
||||||
{
|
{
|
||||||
$handle=@opendir($dirroot);
|
$handle=@opendir(dol_osencode($dirroot));
|
||||||
if (is_resource($handle))
|
if (is_resource($handle))
|
||||||
{
|
{
|
||||||
while (($file = readdir($handle))!==false)
|
while (($file = readdir($handle))!==false)
|
||||||
@ -755,7 +755,7 @@ function UnActivate($value, $requiredby=1)
|
|||||||
|
|
||||||
if ($type == 'alt')
|
if ($type == 'alt')
|
||||||
{
|
{
|
||||||
$handle=@opendir($dirroot);
|
$handle=@opendir(dol_osencode($dirroot));
|
||||||
if (is_resource($handle))
|
if (is_resource($handle))
|
||||||
{
|
{
|
||||||
while (($file = readdir($handle))!==false)
|
while (($file = readdir($handle))!==false)
|
||||||
@ -846,7 +846,7 @@ function complete_dictionnary_with_modules(&$taborder,&$tabname,&$tablib,&$tabsq
|
|||||||
// Load modules attributes in arrays (name, numero, orders) from dir directory
|
// Load modules attributes in arrays (name, numero, orders) from dir directory
|
||||||
//print $dir."\n<br>";
|
//print $dir."\n<br>";
|
||||||
dol_syslog("Scan directory ".$dir." for modules");
|
dol_syslog("Scan directory ".$dir." for modules");
|
||||||
$handle=@opendir($dir);
|
$handle=@opendir(dol_osencode($dir));
|
||||||
if (is_resource($handle))
|
if (is_resource($handle))
|
||||||
{
|
{
|
||||||
while (($file = readdir($handle))!==false)
|
while (($file = readdir($handle))!==false)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user