LSsession :: loadLSclass(): respect $warn parameter on includeFile() call

This commit is contained in:
Benjamin Renard 2020-05-07 11:19:36 +02:00
parent 16aa789b21
commit 7153356a24

View file

@ -277,7 +277,7 @@ class LSsession {
return true; return true;
if($type) if($type)
$class = "$type.$class"; $class = "$type.$class";
if (self :: includeFile(LS_CLASS_DIR .'class.'.$class.'.php')) if (self :: includeFile(LS_CLASS_DIR .'class.'.$class.'.php', false, $warn))
return true; return true;
if ($warn) if ($warn)
LSerror :: addErrorCode('LSsession_05', $class); LSerror :: addErrorCode('LSsession_05', $class);